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

Disassembly:
push 0xffffffffffffffff
push 0x476d24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edi
cmp dword [edi + 0x10], 1
jne 0x42033e
mov eax, 8
mov dword [esp + 0x2c], 0x1f0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 4
jmp 0x420357
mov eax, 0x10
mov dword [esp + 0x2c], 0x1e8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
mov esi, dword [esp + 0x294]
mov ecx, dword [esp + 0x2a0]
mov edx, dword [esp + 0x290]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x29c]
push 0
push 0
push esi
mov dword [eax], 0
push edx
mov dword [esp + 0x30], esi
mov word [ecx], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, esi
jne 0x420474
mov edx, dword [esp + 0x290]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x78]
push 0x200
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x420681
cmp dword [esp + 0x34], 0x200
jne 0x42089b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x260]
xor eax, eax
xor ebx, ebx
mov al, byte [esp + ecx + 0x72]
xor edi, edi
mov ebp, eax
xor eax, eax
xor esi, esi
and edx, 0xff
jle 0x420c63
mov ecx, dword [esp + eax + 0x70]
cmp ecx, dword [esp + 0x298]
ja 0x420416
test ecx, ecx
je 0x420416
cmp ecx, edi
je 0x42040f
mov edi, ecx
mov ebx, eax
add eax, ebp
inc esi
cmp esi, edx
jl 0x4203f6
cmp eax, 0x200
je 0x420ab5
test eax, eax
jne 0x42042d
test edi, edi
je 0x420c63
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + ecx + 0x73]
test al, al
je 0x420449
mov edx, dword [esp + 0x1c]
add edx, ebx
mov esi, dword [esp + edx + 0x70]
mov dword [esp + 0x20], esi
jmp 0x42044d
mov esi, dword [esp + 0x20]
test al, al
je 0x420e11
mov eax, dword [esp + 0x290]
push 0
push 0
push esi
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edi, dword [esp + 0x10]
cmp eax, esi
je 0x42039a
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [0x49aec0]
mov esi, eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x14]
xor ebp, ebp
push 0x5335
push edx
mov dword [esp + 0x290], ebp
call fcn.0042ba30
mov ecx, dword [edi + 0x18]
mov eax, dword [eax]
push ebp
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x2a0], 1
call fcn.004638af
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 0
call fcn.00465892
mov eax, dword [esp + 0x10]
mov edi, 5
push esi
cmp dword [eax - 8], ebp
jne 0x42050d
lea ecx, [esp + 0x28]
push ecx
call fcn.0042b940
mov ebx, 1
mov dword [esp + 0x20], ebx
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push 0x498ca4
push eax
mov byte [esp + 0x29c], 4
call fcn.004638af
add esp, 0x14
jmp 0x420553
lea ecx, [esp + 0x34]
push ecx
call fcn.0042b940
add esp, 8
mov dword [esp + 0x18], 2
push eax
lea edx, [esp + 0x18]
push 0x498ca0
push edx
mov dword [esp + 0x294], edi
call fcn.00465b9b
mov ebx, 6
mov dword [esp + 0x18], ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28c], ebx
call fcn.00465caa
test bl, 4
mov dword [esp + 0x288], edi
je 0x42056f
and ebx, 0xfffffffb
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00465892
test bl, 2
mov dword [esp + 0x288], 4
je 0x42058f
and ebx, 0xfffffffd
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebx
call fcn.00465892
test bl, 1
mov dword [esp + 0x288], ebp
je 0x4205a4
lea ecx, [esp + 0x24]
call fcn.00465892
mov eax, dword [0x49a15c]
push ebp
push 0x498b18
push 0x498b18
push ebp
push eax
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x4205d8
mov ecx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], ecx
push 0x498b0c
lea ecx, [esp + 0x20]
call fcn.00465900
mov bl, 7
push 0x499a3c
lea ecx, [esp + 0x24]
mov byte [esp + 0x28c], bl
call fcn.00465900
mov ecx, dword [0x49a15c]
push ebp
push esi
lea edx, [esp + 0x24]
push 0x1fa
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x29c], 8
call fcn.00429ee0
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], bl
call fcn.00465892
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 0
call fcn.00465892
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x49a15c]
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [esp + 0x10]
mov dword [esp + 0x288], 0xffffffff
call fcn.00465892
jmp 0x420ffc
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [0x49aec0]
mov esi, eax
mov dword [esp + 0x10], edx
lea eax, [esp + 0x14]
mov ebp, 9
push 0x5335
push eax
mov dword [esp + 0x290], ebp
call fcn.0042ba30
mov ecx, dword [edi + 0x18]
mov eax, dword [eax]
push 0
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x2a0], 0xa
call fcn.004638af
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 9
call fcn.00465892
mov eax, dword [esp + 0x10]
mov edi, 0xe
push esi
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x420720
lea ecx, [esp + 0x28]
push ecx
call fcn.0042b940
mov ebx, 8
mov dword [esp + 0x20], ebx
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push 0x498ca4
push eax
mov byte [esp + 0x29c], 0xd
call fcn.004638af
add esp, 0x14
jmp 0x42076a
lea ecx, [esp + 0x34]
push ecx
call fcn.0042b940
add esp, 8
mov dword [esp + 0x18], 0x10
push eax
lea edx, [esp + 0x18]
push 0x498ca0
push edx
mov dword [esp + 0x294], edi
call fcn.00465b9b
mov ebx, 0x30
mov dword [esp + 0x18], ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28c], 0xf
call fcn.00465caa
test bl, 0x20
mov dword [esp + 0x288], edi
je 0x420786
and ebx, 0xffffffdf
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00465892
test bl, 0x10
mov dword [esp + 0x288], 0xd
je 0x4207a6
and ebx, 0xffffffef
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebx
call fcn.00465892
test bl, 8
mov dword [esp + 0x288], ebp
je 0x4207bb
lea ecx, [esp + 0x24]
call fcn.00465892
mov eax, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push eax
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x4207f1
mov ecx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], ecx
push 0x498b0c
lea ecx, [esp + 0x20]
call fcn.00465900
push 0x499a3c
lea ecx, [esp + 0x24]
mov byte [esp + 0x28c], 0x10
call fcn.00465900
mov ecx, dword [0x49a15c]
push 0
push esi
lea edx, [esp + 0x24]
push 0x200
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x29c], 0x11
call fcn.00429ee0
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], 0x10
call fcn.00465892
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 9
call fcn.00465892
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x49a15c]
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [esp + 0x10]
mov dword [esp + 0x288], 0xffffffff
call fcn.00465892
jmp 0x420ffc
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [0x49aec0]
mov esi, eax
mov dword [esp + 0x10], edx
lea eax, [esp + 0x14]
mov ebp, 0x12
push 0x5335
push eax
mov dword [esp + 0x290], ebp
call fcn.0042ba30
mov ecx, dword [edi + 0x18]
mov eax, dword [eax]
push 0
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x2a0], 0x13
call fcn.004638af
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 0x12
call fcn.00465892
mov eax, dword [esp + 0x10]
mov edi, 0x17
push esi
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42093a
lea ecx, [esp + 0x28]
push ecx
call fcn.0042b940
mov ebx, 0x40
mov dword [esp + 0x20], ebx
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push 0x498ca4
push eax
mov byte [esp + 0x29c], 0x16
call fcn.004638af
add esp, 0x14
jmp 0x420984
lea ecx, [esp + 0x34]
push ecx
call fcn.0042b940
add esp, 8
mov dword [esp + 0x18], 0x80
push eax
lea edx, [esp + 0x18]
push 0x498ca0
push edx
mov dword [esp + 0x294], edi
call fcn.00465b9b
mov ebx, 0x180
mov dword [esp + 0x18], ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28c], 0x18
call fcn.00465caa
test bh, 1
mov dword [esp + 0x288], edi
je 0x4209a0
and bh, 0xfe
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00465892
test bl, 0x80
mov dword [esp + 0x288], 0x16
je 0x4209c0
and bl, 0x7f
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebx
call fcn.00465892
test bl, 0x40
mov dword [esp + 0x288], ebp
je 0x4209d5
lea ecx, [esp + 0x24]
call fcn.00465892
mov eax, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push eax
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x420a0b
mov ecx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], ecx
push 0x498b0c
lea ecx, [esp + 0x20]
call fcn.00465900
mov bl, 0x19
push 0x499a3c
lea ecx, [esp + 0x24]
mov byte [esp + 0x28c], bl
call fcn.00465900
mov ecx, dword [0x49a15c]
push 0
push esi
lea edx, [esp + 0x24]
push 0x206
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x29c], 0x1a
call fcn.00429ee0
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], bl
call fcn.00465892
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 0x12
call fcn.00465892
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x49a15c]
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [esp + 0x10]
mov dword [esp + 0x288], 0xffffffff
call fcn.00465892
jmp 0x420ffc
push 0x49dd08
lea ecx, [esp + 0x20]
call fcn.00465952
push 0x49dd08
lea ecx, [esp + 0x24]
mov dword [esp + 0x28c], 0x1b
call fcn.00465952
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0x46
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x29c], 0x1c
call fcn.0042eba0
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], 0x1f
call fcn.00465892
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 0x1e
call fcn.00465892
mov ecx, dword [0x49aec0]
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x14]
mov bl, 0x20
push 0x533b
push edx
mov byte [esp + 0x290], bl
call fcn.0042ba30
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push 0
mov byte [esp + 0x294], 0x21
mov edx, dword [ecx + 0x18]
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004638af
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], bl
call fcn.00465892
mov ecx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push ecx
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x420baa
mov edx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], edx
push 0x498b0c
lea ecx, [esp + 0x2c]
call fcn.00465900
push 0x499a3c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 0x24
call fcn.00465900
push 0
push 0x533b
lea eax, [esp + 0x30]
push 0x220
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [0x49a15c]
mov byte [esp + 0x29c], 0x25
call fcn.00429ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], 0x24
call fcn.00465892
lea ecx, [esp + 0x28]
mov byte [esp + 0x288], bl
call fcn.00465892
mov ecx, dword [0x49a15c]
lea edx, [esp + 0x2c]
push edx
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [esp + 0x2c]
mov byte [esp + 0x288], 0x1e
call fcn.00465892
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x38]
jmp 0x420ff7
push 0x49dd08
lea ecx, [esp + 0x24]
call fcn.00465952
push 0x49dd08
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28c], 0x26
call fcn.00465952
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x46
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x29c], 0x27
call fcn.0042eba0
lea ecx, [esp + 0x28]
mov byte [esp + 0x288], 0x2a
call fcn.00465892
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], 0x29
call fcn.00465892
mov edx, dword [0x49aec0]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x14]
mov bl, 0x2b
push 0x533b
push eax
mov byte [esp + 0x290], bl
call fcn.0042ba30
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push 0
mov byte [esp + 0x294], 0x2c
mov edx, dword [ecx + 0x18]
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004638af
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], bl
call fcn.00465892
mov ecx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push ecx
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x420d58
mov edx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], edx
push 0x498b0c
lea ecx, [esp + 0x14]
call fcn.00465900
push 0x499a3c
lea ecx, [esp + 0x20]
mov byte [esp + 0x28c], 0x2f
call fcn.00465900
push 0
push 0x533b
lea eax, [esp + 0x18]
push 0x228
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [0x49a15c]
mov byte [esp + 0x29c], 0x30
call fcn.00429ee0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 0x2f
call fcn.00465892
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], bl
call fcn.00465892
mov ecx, dword [0x49a15c]
lea edx, [esp + 0x2c]
push edx
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [esp + 0x2c]
mov byte [esp + 0x288], 0x29
call fcn.00465892
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x38]
jmp 0x420ff7
mov al, byte [esp + ecx + 0x73]
test al, al
jne 0x420e50
test edi, edi
je 0x420e50
mov eax, dword [esp + 0x28]
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x29c]
mov edx, dword [esp + ecx + 0x70]
mov ecx, dword [esp + 0x24]
add ebx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x2a0]
mov dx, word [esp + ebx + 0x70]
mov word [eax], dx
mov eax, 1
jmp 0x420ffe
push 0x49dd08
lea ecx, [esp + 0x2c]
call fcn.00465952
push 0x49dd08
lea ecx, [esp + 0x28]
mov dword [esp + 0x28c], 0x31
call fcn.00465952
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push 0x46
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x29c], 0x32
call fcn.0042eba0
lea ecx, [esp + 0x24]
mov byte [esp + 0x288], 0x35
call fcn.00465892
lea ecx, [esp + 0x28]
mov byte [esp + 0x288], 0x34
call fcn.00465892
mov eax, dword [0x49aec0]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
mov bl, 0x36
push 0x533b
push ecx
mov byte [esp + 0x290], bl
call fcn.0042ba30
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push 0
mov byte [esp + 0x294], 0x37
mov ecx, dword [edx + 0x18]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
call fcn.004638af
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], bl
call fcn.00465892
mov eax, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push eax
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x420f43
mov ecx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], ecx
push 0x498b0c
lea ecx, [esp + 0x18]
call fcn.00465900
push 0x499a3c
lea ecx, [esp + 0x34]
mov byte [esp + 0x28c], 0x3a
call fcn.00465900
mov ecx, dword [0x49a15c]
push 0
push 0x533b
lea edx, [esp + 0x1c]
push 0x23e
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x29c], 0x3b
call fcn.00429ee0
lea ecx, [esp + 0x30]
mov byte [esp + 0x288], 0x3a
call fcn.00465892
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], bl
call fcn.00465892
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x49a15c]
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 0x34
call fcn.00465892
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0042ecb0
xor eax, eax
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x27c
ret 0x14