Function at 0x10133c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c81e5
mov eax, dword fs:[0]
push eax
sub esp, 0xe50
mov eax, dword [0x1023c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe40], ecx
mov eax, dword [ebp + 8]
push 0x101cfb7c
push eax
lea eax, [ebp - 0xe38]
mov dword [ebp - 0xe38], 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10133cc5
mov eax, 0xfffffffc
jmp 0x10134790
push dword [ebp - 0xe38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc]
movzx eax, ax
mov ecx, 0xffff
add esp, 4
cmp cx, ax
je 0x1013478b
mov ecx, 0xfeff
cmp ax, cx
jne 0x1013478b
push dword [ebp - 0xe38]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0xdf8]
push 0x1c
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 0x1c
jl 0x1013478b
push 0x16
lea eax, [ebp - 0xdec]
push 0x101d50f4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x1013478b
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push eax
push dword [ebp - 0xe38]
call esi
push dword [ebp - 0xe38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x10133d64
xor eax, eax
jmp 0x10134790
push 0
push 0
push dword [ebp - 0xe38]
call esi
mov esi, edi
xor ecx, ecx
shr esi, 1
and edi, 1
add esi, edi
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10085e51
mov edi, eax
xor eax, eax
mov dword [ebp - 0xe44], edi
mov word [edi + esi*2], ax
push dword [ebp - 0xe38]
push esi
push 2
push edi
call ebx
add esp, 0x20
lea esi, [edi + 2]
cmp dword [ebp + 0xc], 0
je 0x10133de0
push 0xc
call fcn.100854b0
mov ebx, eax
add esp, 4
mov dword [ebp - 0xe2c], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x10133e36
mov eax, dword [ebp - 0xe40]
xor edi, edi
mov ebx, dword [eax + 4]
mov dword [ebp - 0xe2c], ebx
mov eax, dword [ebx + 4]
mov edx, eax
mov ecx, dword [ebx]
sub edx, ecx
sar edx, 2
test edx, edx
jle 0x10133e26
push edi
mov ecx, ebx
call fcn.10028140
mov ecx, dword [eax]
test ecx, ecx
je 0x10133e15
push ecx
call fcn.1001e960
mov eax, dword [ebx + 4]
inc edi
mov ecx, dword [ebx]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp edi, edx
jl 0x10133e01
push eax
push ecx
lea eax, [ebp - 0xe50]
mov ecx, ebx
push eax
call fcn.10028840
movzx eax, word [esi]
test ax, ax
je 0x1013418d
cmp ax, 0x5b
jne 0x1013417d
movzx eax, word [esi + 2]
add esi, 2
mov dword [ebp - 0xe4c], esi
test ax, ax
je 0x1013418d
xor ecx, ecx
cmp ax, 0x5d
jne 0x10133e74
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 2
jg 0x10133e88
movzx eax, word [esi + 2]
add esi, 2
add ecx, 2
test ax, ax
jne 0x10133e64
jmp 0x1013418d
push 0x30
add esi, 2
call fcn.100854b0
mov ecx, dword [ebp - 0xe4c]
mov edx, eax
xor eax, eax
mov dword [ebp - 0xe30], edx
lea ebx, [edx + 0x18]
mov dword [ebp - 0xe48], edx
add esp, 4
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov eax, esi
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
mov ecx, edx
call fcn.10002470
xor eax, eax
mov dword [ebp - 0xe00], 0
mov dword [ebp - 0xdfc], 7
mov word [ebp - 0xe10], ax
mov dword [ebp - 4], eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
je 0x10133f34
nop word [eax + eax]
cmp ax, 0xa
jne 0x10133f1d
cmp word [esi - 2], 0xd
je 0x10133f2d
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x10133f10
jmp 0x10133f34
movzx ecx, word [esi + 2]
add esi, 2
movzx eax, cx
mov ecx, esi
cmp eax, 0x5b
je 0x1013413d
test ax, ax
je 0x10134140
xor edx, edx
lea edi, [esi - 2]
mov dword [ebp - 0xe34], edx
cmp ax, 0x3d
jne 0x10133fe5
movzx eax, word [ecx]
add esi, 2
add edi, 2
cmp eax, 0x20
je 0x10133fe3
cmp eax, 0xd
je 0x10133fe3
cmp eax, 0xa
je 0x10133fe3
cmp edi, ecx
jbe 0x10133fe3
mov eax, esi
sub eax, ecx
sub eax, 2
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xe10]
call fcn.10002470
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0xe10]
push ecx
cmp dword [ebx + 8], eax
je 0x10133fae
mov ecx, eax
call fcn.100022c0
add dword [ebx + 4], 0x18
jmp 0x10133fb6
push eax
mov ecx, ebx
call fcn.1002db40
cmp dword [ebp - 0xdfc], 8
lea eax, [ebp - 0xe10]
mov dword [ebp - 0xe00], 0
cmovae eax, dword [ebp - 0xe10]
xor ecx, ecx
mov dword [ebp - 0xe34], 1
mov word [eax], cx
mov ecx, esi
cmp word [esi], 0xa
jne 0x10133ff2
cmp word [esi - 2], 0xd
je 0x1013400c
movzx eax, word [esi + 2]
add esi, 2
mov edx, eax
test ax, ax
je 0x10134094
add edi, 2
jmp 0x10133f56
movzx eax, word [ecx]
add esi, 2
cmp eax, 0x20
je 0x1013412a
cmp eax, 0xd
je 0x1013412a
cmp eax, 0xa
je 0x1013412a
mov eax, esi
sub eax, ecx
sub eax, 4
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xe10]
call fcn.10002470
mov edi, dword [ebp - 0xe30]
lea ecx, [ebp - 0xe10]
push ecx
mov eax, dword [edi + 0x28]
cmp dword [edi + 0x2c], eax
je 0x10134065
mov ecx, eax
call fcn.100022c0
add dword [edi + 0x28], 0x18
jmp 0x1013406e
push eax
lea ecx, [edi + 0x24]
call fcn.1002db40
cmp dword [ebp - 0xe34], 0
jne 0x1013412a
push 0x101cfd00
lea ecx, [ebp - 0xe28]
call fcn.100025e0
mov byte [ebp - 4], 1
jmp 0x1013410d
mov eax, esi
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xe10]
call fcn.10002470
mov edi, dword [ebp - 0xe30]
lea ecx, [ebp - 0xe10]
push ecx
mov eax, dword [edi + 0x28]
cmp dword [edi + 0x2c], eax
je 0x101340c9
mov ecx, eax
call fcn.100022c0
add dword [edi + 0x28], 0x18
jmp 0x101340d2
push eax
lea ecx, [edi + 0x24]
call fcn.1002db40
cmp dword [ebp - 0xe34], 0
jne 0x1013412a
xor eax, eax
mov dword [ebp - 0xe18], 0
push eax
push 0x101cfd00
lea ecx, [ebp - 0xe28]
mov dword [ebp - 0xe14], 7
mov word [ebp - 0xe28], ax
call fcn.10002470
mov byte [ebp - 4], 2
lea eax, [ebp - 0xe28]
mov ecx, ebx
push eax
call fcn.10028ae0
lea ecx, [ebp - 0xe28]
mov byte [ebp - 4], 0
call fcn.100023a0
movzx eax, word [esi]
test ax, ax
je 0x10134140
mov ecx, esi
cmp eax, 0x5b
jne 0x10133f42
sub esi, 2
mov ebx, dword [ebp - 0xe2c]
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x1013415c
mov ecx, dword [ebp - 0xe30]
mov dword [eax], ecx
add dword [ebx + 4], 4
jmp 0x1013416b
lea ecx, [ebp - 0xe48]
push ecx
push eax
mov ecx, ebx
call fcn.1002ca30
lea ecx, [ebp - 0xe10]
mov dword [ebp - 4], 0xffffffff
call fcn.100023a0
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x10133e42
push dword [ebp - 0xe38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 0xe44]
call fcn.100854ab
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x10134778
mov esi, dword [ebp - 0xe2c]
xor ebx, ebx
mov dword [ebp - 0xe3c], ebx
mov edi, dword [esi + 4]
mov eax, edi
mov esi, dword [esi]
sub eax, esi
sar eax, 2
mov dword [ebp - 0xe4c], edi
cmp eax, 1
jbe 0x101347ae
mov dword [ebp - 0xe30], ebx
mov ecx, edi
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x1c]
sub edx, dword [eax + 0x18]
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x101346ec
mov eax, dword [ebp - 0xe40]
xor ebx, ebx
mov dword [ebp - 0xe54], ebx
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0xe50], ecx
sar eax, 2
mov dword [ebp - 0xe5c], eax
mov dword [ebp - 0xe34], ebx
cmp eax, 1
jbe 0x101347ae
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x1c]
sub ecx, dword [eax + 0x18]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x10134563
mov eax, edi
sub eax, esi
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
mov edi, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0xe3c]
jbe 0x101347b3
add edi, dword [ebp - 0xe30]
cmp dword [edi + 0x14], 8
jb 0x101342a2
mov edi, dword [edi]
mov ecx, dword [ebp - 0xe40]
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov ecx, dword [ecx + 4]
mov eax, 0x2aaaaaab
mov ebx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0xe34]
jbe 0x101347b3
mov edx, dword [ebp - 0xe54]
cmp dword [ebx + edx + 0x14], 8
lea eax, [ebx + edx]
jb 0x101342f8
mov eax, dword [eax]
mov cx, word [eax]
cmp cx, word [edi]
jne 0x1013431e
test cx, cx
je 0x1013431a
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x1013431e
add eax, 4
add edi, 4
test cx, cx
jne 0x101342f8
xor eax, eax
jmp 0x10134323
sbb eax, eax
or eax, 1
test eax, eax
je 0x1013434e
mov ebx, dword [ebp - 0xe34]
mov eax, dword [ebp - 0xe5c]
inc ebx
mov edi, dword [ebp - 0xe4c]
add edx, 0x18
mov ecx, dword [ebp - 0xe50]
mov dword [ebp - 0xe54], edx
jmp 0x1013422b
mov ebx, dword [sym.imp.HncFoundation.dll_int___stdcall_HncLoadStringWToWSTRUsingRC_Deprecate_struct_HINSTANCE_____unsigned_int__unsigned_short_int___int_]
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x43fc
push dword [0x1023c868]
call ebx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x3bc3
push dword [0x1023c868]
call ebx
mov edi, dword [ebp - 0xe2c]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov ecx, dword [ecx + 4]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0xe3c]
mov esi, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x101347b3
mov eax, dword [ebp - 0xe30]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x101343d9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.1002c230
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_unsigned_short_int_const__]
lea ecx, [ebp - 0xe48]
add esp, 0xc
push 0x101cfd00
call esi
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0xe44]
call esi
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xe58]
call esi
mov byte [ebp - 4], 5
call dword [sym.imp.HncFoundation.dll_class_Hnc::Framework____cdecl_Hnc::GetFramework_void_]
lea ecx, [ebp - 0xe48]
push ecx
push 0
mov edx, dword [eax]
lea ecx, [ebp - 0xe44]
push 0
push 0x34
push ecx
lea ecx, [ebp - 0xe58]
push ecx
mov ecx, eax
call dword [edx + 0x4c]
lea ecx, [ebp - 0xe58]
mov esi, eax
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea ecx, [ebp - 0xe44]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea ecx, [ebp - 0xe48]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
cmp esi, 6
jne 0x10134563
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov eax, dword [ebp - 0xe40]
mov eax, dword [eax + 4]
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov ecx, dword [ecx + 4]
push ebx
add ecx, 0x18
call fcn.10028a30
mov ecx, dword [edi + 4]
mov esi, eax
mov ebx, dword [ebp - 0xe34]
add ecx, 0x18
push ebx
call fcn.10028a30
mov ecx, eax
cmp ecx, esi
je 0x101344f6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x101344ed
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.10002470
mov eax, dword [ebp - 0xe2c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov eax, dword [ebp - 0xe40]
mov eax, dword [eax + 4]
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov ecx, dword [ecx + 4]
push dword [ebp - 0xe3c]
add ecx, 0x24
call fcn.10028a30
mov ecx, dword [edi + 4]
mov esi, eax
push ebx
add ecx, 0x24
call fcn.10028a30
mov ecx, eax
cmp ecx, esi
je 0x10134563
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1013455a
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.10002470
mov eax, dword [ebp - 0xe40]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov ecx, dword [eax]
sub esi, ecx
sar esi, 2
cmp esi, 1
jbe 0x101347ae
mov ebx, dword [ecx + 4]
mov eax, 0x2aaaaaab
mov edi, dword [ebx + 0x1c]
mov ecx, edi
sub ecx, dword [ebx + 0x18]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xe34], eax
jne 0x101346a9
mov eax, dword [ebp - 0xe2c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, 0x2aaaaaab
sub ecx, edx
mov dword [ebp - 0xe50], edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0xe3c]
jbe 0x101347b3
mov eax, dword [ebp - 0xe50]
add eax, dword [ebp - 0xe30]
cmp esi, 1
jbe 0x101347ae
push eax
cmp dword [ebx + 0x20], edi
je 0x10134616
mov ecx, edi
call fcn.100022c0
add dword [ebx + 0x1c], 0x18
jmp 0x1013461f
push edi
lea ecx, [ebx + 0x18]
call fcn.1002db40
mov eax, dword [ebp - 0xe2c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x28]
mov esi, dword [eax + 0x24]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0xe3c]
jbe 0x101347b3
mov eax, dword [ebp - 0xe40]
mov ebx, dword [ebp - 0xe30]
mov eax, dword [eax + 4]
lea ecx, [esi + ebx]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov esi, dword [esi + 4]
push ecx
mov eax, dword [esi + 0x28]
cmp dword [esi + 0x2c], eax
je 0x1013469e
mov ecx, eax
call fcn.100022c0
add dword [esi + 0x28], 0x18
jmp 0x101346af
push eax
lea ecx, [esi + 0x24]
call fcn.1002db40
jmp 0x101346af
mov ebx, dword [ebp - 0xe30]
mov eax, dword [ebp - 0xe2c]
add ebx, 0x18
inc dword [ebp - 0xe3c]
mov dword [ebp - 0xe30], ebx
mov edi, dword [eax + 4]
mov ecx, edi
mov esi, dword [eax]
mov eax, edi
sub eax, esi
mov dword [ebp - 0xe4c], edi
sar eax, 2
cmp eax, 1
jbe 0x101347ae
mov ebx, dword [ebp - 0xe3c]
jmp 0x101341e2
mov eax, ecx
xor ebx, ebx
sub eax, esi
test eax, 0xfffffffc
jle 0x10134757
nop dword [eax]
sub ecx, esi
sar ecx, 2
cmp ecx, ebx
jbe 0x101347ae
mov edi, dword [esi + ebx*4]
test edi, edi
je 0x10134740
lea ecx, [edi + 0x24]
call fcn.10012c20
lea ecx, [edi + 0x18]
call fcn.10012c20
mov ecx, edi
call fcn.100023a0
push 0x30
push edi
call fcn.1008549d
mov edi, dword [ebp - 0xe2c]
add esp, 8
mov esi, dword [edi]
jmp 0x10134746
mov edi, dword [ebp - 0xe2c]
mov ecx, dword [edi + 4]
inc ebx
mov eax, ecx
sub eax, esi
sar eax, 2
cmp ebx, eax
jl 0x10134700
jmp 0x1013475d
mov edi, dword [ebp - 0xe2c]
cmp esi, ecx
je 0x10134770
push 0
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [edi + 4], esi
push ecx
mov ecx, edi
call fcn.1001e990
mov eax, dword [ebp - 0xe40]
mov dword [eax], 0
mov eax, 1
jmp 0x10134790
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 8
call fcn.10014370
call fcn.10014370
int3