Function at 0x4244c0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52fc2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x28], ebp
call fcn.00439c20
xor esi, esi
mov ebx, 1
mov dword [ebp + 0x1e4], esi
mov dword [ebp + 0x1e8], esi
mov dword [ebp + 0x1ec], esi
mov dword [ebp + 0x1f0], esi
mov dword [ebp + 0x1f8], esi
mov dword [ebp + 0x1fc], esi
mov word [ebp + 0x200], bx
mov word [ebp + 0x202], bx
mov dword [ebp + 0x204], ebx
lea edi, [ebp + 0x2ec]
mov ecx, 6
xor eax, eax
mov dword [ebp + 0x208], esi
mov dword [ebp + 0x20c], esi
mov dword [ebp + 0x210], esi
mov dword [ebp + 0x218], esi
mov dword [ebp + 0x2a4], esi
mov dword [ebp + 0x2e8], esi
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x304]
mov ecx, 0x19
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x368]
mov ecx, 9
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x38c]
xor ecx, ecx
mov dword [esp + 0x120], esi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
or edi, 0xffffffff
lea ecx, [ebp + 0x3c8]
mov dword [ebp + 0x3a0], edi
mov word [ebp + 0x3a6], si
mov word [ebp + 0x3a4], si
mov word [ebp + 0x3aa], di
mov word [ebp + 0x3a8], di
mov dword [ebp + 0x3ac], esi
mov dword [ebp + 0x3b0], esi
mov dword [ebp + 0x3b4], ebx
mov dword [ebp + 0x3b8], ebx
mov dword [ebp + 0x3bc], ebx
mov dword [ebp + 0x3c0], ebx
mov byte [esp + 0x120], bl
mov dword [ebp + 0x3c4], esi
call fcn.004a81e0
lea eax, [ebp + 0x3fc]
xor edx, edx
mov dword [ebp + 0x3e0], esi
mov dword [ebp + 0x3e4], esi
mov dword [ebp + 0x3e8], esi
mov dword [ebp + 0x3ec], esi
mov dword [ebp + 0x3f0], esi
mov dword [ebp + 0x3f4], esi
mov dword [ebp + 0x3f8], edi
mov dword [ebp], 0x53390c
mov dword [eax], edx
mov byte [esp + 0x120], 2
mov dword [eax + 4], edx
mov ecx, dword [0x659a18]
push ecx
push ebx
push 0x10
lea edx, [ebp + 0x1d0]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
call ebx
mov eax, dword [0x659a18]
lea ecx, [ebp + 0x1e0]
push eax
push 1
push 2
push ecx
call ebx
mov edx, dword [0x659a18]
lea eax, [ebp + 0x1e2]
push edx
push 1
push 1
push eax
call ebx
mov ecx, dword [0x659a18]
lea edx, [ebp + 0x1e3]
push ecx
push 1
push 1
push edx
call ebx
mov eax, dword [0x659a18]
add esp, 0x40
push eax
push 1
lea eax, [ebp + 0x1e4]
push 4
push eax
call ebx
mov ecx, dword [0x659a18]
lea eax, [ebp + 0x1e8]
push ecx
push 1
push 4
push eax
call ebx
mov edx, dword [0x659a18]
lea eax, [ebp + 0x1ec]
push edx
push 1
push 4
push eax
call ebx
mov eax, dword [0x659a18]
push eax
push 1
lea eax, [ebp + 0x1f0]
push 4
push eax
call ebx
mov ecx, dword [0x659a18]
add esp, 0x40
lea edx, [ebp + 0x1f4]
push ecx
push 1
push 4
push edx
call ebx
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x14
mov ecx, ebp
push eax
call fcn.0043b300
lea edi, [ebp + 0x224]
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [ebp + 0x264]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [ebp + 0x2a8]
rep stosd dword es:[edi], eax
cmp dword [0x659958], 0x19
jl 0x424bfa
mov ecx, dword [0x659a18]
lea eax, [ebp + 0x1f8]
push ecx
push 1
push 4
push eax
call ebx
mov edx, dword [0x659a18]
lea eax, [ebp + 0x1fc]
push edx
push 1
push 4
push eax
call ebx
mov eax, dword [0x659958]
add esp, 0x20
cmp eax, 0x1c
jl 0x424bfa
mov eax, dword [0x659a18]
push eax
push 1
lea eax, [ebp + 0x200]
push 8
push eax
call ebx
mov ecx, dword [0x659a18]
lea edx, [esp + 0x98]
push ecx
push 1
push 0x10
push edx
call ebx
mov eax, dword [0x659a18]
push eax
push 1
lea eax, [ebp + 0x210]
push 4
push eax
call ebx
mov ecx, dword [0x659a18]
lea edx, [ebp + 0x214]
push ecx
push 1
push 4
push edx
call ebx
mov eax, dword [0x659a18]
add esp, 0x40
push eax
push 1
lea eax, [ebp + 0x218]
push 4
push eax
call ebx
mov ecx, dword [0x659a18]
lea edx, [ebp + 0x21c]
push ecx
push 1
push 4
push edx
call ebx
mov eax, dword [0x659a18]
lea ecx, [ebp + 0x220]
push eax
push 1
push 4
push ecx
call ebx
mov edx, dword [0x659a18]
lea eax, [esp + 0xc8]
push edx
push 1
push 0x20
push eax
call ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], esi
rep stosd dword es:[edi], eax
mov ecx, dword [0x659a18]
add esp, 0x40
lea edx, [esp + 0x28]
push ecx
push 1
push 0x20
push edx
call ebx
mov ecx, dword [0x659a18]
xor eax, eax
push ecx
push 1
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
push 0xc
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], eax
call ebx
mov eax, dword [ebp + 0x1f0]
add esp, 0x20
test eax, 0x10000000
je 0x424ac6
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x2e8], eax
mov ecx, dword [0x659a34]
add esp, 4
sub edi, 8
test eax, ecx
mov dword [esp + 0x10], edi
je 0x4248bd
lea eax, [ebp + 0x2ec]
push 0x18
push eax
push edi
call fcn.00472400
add esp, 0xc
mov ecx, dword [0x659a38]
mov eax, dword [ebp + 0x2e8]
test eax, ecx
je 0x424977
lea eax, [ebp + 0x304]
push 0x64
add edi, 4
push eax
push edi
call fcn.00472400
mov eax, dword [ebp + 0x304]
lea esi, [ebp + 0x308]
mov ecx, 8
lea edi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea esi, [ebp + 0x328]
mov ecx, 8
lea edi, [esp + 0x48]
test ah, 3
rep movsd dword es:[edi], dword [esi]
je 0x42493e
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x424936
lea edx, [ebp + 0x348]
push 1
push edx
mov ecx, eax
call fcn.00489020
jmp 0x424938
xor eax, eax
mov dword [ebp + 0x3e0], eax
mov eax, dword [ebp + 0x304]
test ah, 0x30
je 0x424971
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x424969
lea ecx, [ebp + 0x358]
push 1
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x42496b
xor eax, eax
mov dword [ebp + 0x3e4], eax
mov edi, dword [esp + 0x10]
xor esi, esi
mov edx, dword [0x659a44]
mov eax, dword [ebp + 0x2e8]
test eax, edx
je 0x42499c
lea eax, [ebp + 0x368]
push 0x24
push eax
lea eax, [edi + 8]
push eax
call fcn.00472400
add esp, 0xc
mov ecx, dword [0x659a48]
mov eax, dword [ebp + 0x2e8]
test eax, ecx
je 0x4249cc
lea eax, [ebp + 0x38c]
push 0x14
add edi, 0xc
push eax
push edi
call fcn.00472400
add esp, 0xc
lea ecx, [ebp + 0x38c]
call fcn.00424080
mov edx, dword [0x659a4c]
mov eax, dword [ebp + 0x2e8]
test eax, edx
je 0x424ac6
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], esi
rep stosd dword es:[edi], eax
mov eax, dword [0x659a18]
lea ecx, [esp + 0xf8]
push eax
push 1
push 0x20
push ecx
call ebx
mov edx, dword [0x659a18]
lea eax, [esp + 0x78]
push edx
push 1
push 0x20
push eax
call ebx
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x118]
mov dword [esp + 0xe8], edx
mov edx, dword [0x659a18]
mov dword [esp + 0x74], eax
push edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0x90]
push 2
lea eax, [esp + 0x100]
push 0x10
push eax
mov dword [esp + 0x88], ecx
call ebx
mov ecx, dword [0x659a50]
mov eax, dword [ebp + 0x2e8]
add esp, 0x30
test eax, ecx
je 0x424ac6
push 0x24
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x424a95
lea edx, [esp + 0xd8]
push 1
push edx
mov ecx, eax
call fcn.00489020
jmp 0x424a97
xor eax, eax
push 0x24
mov dword [ebp + 0x3f0], eax
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x424abe
lea ecx, [esp + 0xe8]
push 1
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x424ac0
xor eax, eax
mov dword [ebp + 0x3f4], eax
test dword [ebp + 0x1f0], 0x4000000
je 0x424b7e
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xd4], eax
lea eax, [ebp + 0x224]
mov dword [esp + 0x64], edx
mov dword [esp + 0x3c], esi
mov ebx, eax
xor edi, edi
cmp dword [esp + edi + 0x28], esi
jle 0x424b6c
mov eax, dword [esp + edi + 0x98]
dec eax
je 0x424b4b
dec eax
je 0x424b2c
dec eax
jne 0x424b6c
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x424b68
mov ecx, dword [esp + edi + 0x28]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x424b6a
push 0x298
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x424b68
mov edx, dword [esp + edi + 0x28]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x424b6a
push 0x24
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x424b68
mov ecx, dword [esp + edi + 0x28]
push esi
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x424b6a
xor eax, eax
mov dword [ebx], eax
add edi, 4
add ebx, 4
cmp edi, 0x40
jl 0x424afa
mov ecx, ebp
call fcn.00427520
test dword [ebp + 0x1f0], 0x2000000
je 0x424b94
mov eax, dword [ebp + 0xc4]
and dword [eax + 0x20], 0xfffffffe
test dword [ebp + 0x1f0], 0x200000
je 0x424bc9
push 0x24
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x424bc1
lea edx, [esp + 0x88]
push 1
push edx
mov ecx, eax
call fcn.00489020
jmp 0x424bc3
xor eax, eax
mov dword [ebp + 0x114], eax
test byte [ebp + 0x2ec], 1
je 0x424bfa
push 0x24
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x424bf2
lea ecx, [ebp + 0x2f4]
push 1
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x424bf4
xor eax, eax
mov dword [ebp + 0x12c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1f0]
and ah, 0xfd
or ah, 1
test ecx, 0x2000000
mov dword [ebp + 8], eax
je 0x424c1d
and ah, 0xfe
or ah, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
or ch, 8
mov dword [ebp + 8], ecx
mov ecx, ebp
call fcn.00427290
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
mov dword [ebp + 0xb8], 1
call fcn.004273f0
movsx eax, word [eax + 2]
movsx edx, word [ebp + 0x16]
movsx edi, word [ebp + 0x12]
lea ecx, [eax + eax]
sub edx, edi
movsx edi, word [ebp + 0x10]
sub edx, ecx
inc edx
push edx
movsx edx, word [ebp + 0x14]
sub edx, edi
sub edx, ecx
movsx ecx, word [ebp + 0x12]
inc edx
add ecx, eax
push edx
push ecx
movsx edx, word [ebp + 0x10]
add edx, eax
lea ecx, [esp + 0x1c]
push edx
call fcn.004b4a60
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
movsx eax, word [ebp + 0x16]
movsx ecx, word [ebp + 0x12]
movsx edx, word [ebp + 0x14]
sub eax, ecx
lea ecx, [esp + 0x18]
inc eax
push eax
movsx eax, word [ebp + 0x10]
sub edx, eax
inc edx
push edx
push esi
push esi
call fcn.004b4a60
mov ecx, dword [eax]
pop edi
mov dword [ebp + 0x34], ecx
mov ecx, dword [esp + 0x114]
mov edx, dword [eax + 4]
mov eax, ebp
mov dword [ebp + 0x38], edx
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 4