Function at 0x4035f0
Capabilities:
Get file size
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40b47d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
mov eax, dword [0x40e0d4]
push ebx
mov dword [esp + 0x1ec], eax
mov eax, dword [esp + 0x200]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x18]
add eax, 4
cmp ecx, 0x10
push edi
mov dword [esp + 0x14], eax
jb 0x403634
mov eax, dword [eax]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403657
xor al, al
jmp 0x403a79
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push ebx
push 2
push ebx
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x4c], ebp
jne 0x403689
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403a78
mov eax, dword [esp + 0x14]
push eax
push ebx
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x4036b4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
xor al, al
jmp 0x403a78
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x5c], ecx
push edx
lea ecx, [esi + 4]
call fcn.00403260
mov eax, dword [esi + 8]
mov ebp, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
add ebp, 8
mov dword [esp + 0x20], ebp
mov dword [ebp], edi
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov edi, dword [esp + 0x20c]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x208], ebx
call fcn.00402a00
add esp, 4
lea ecx, [esp + 0x60]
push ecx
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x20c], 1
call fcn.00402ae0
push eax
lea edx, [esp + 0x28]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x20c], 2
call fcn.00403470
mov edi, dword [eax]
lea ecx, [esp + 0xac]
call fcn.004026e0
cmp dword [esp + 0x48], 0x10
jb 0x40376a
mov eax, dword [esp + 0x34]
push eax
call fcn.00403dc1
add esp, 4
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x204], 0xffffffff
jb 0x403799
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00403dc1
add esp, 4
push 0xffffffffffffffff
mov dword [edi + 0x28], ebp
mov ebp, dword [esp + 0x210]
push ebx
push ebp
lea ecx, [edi + 0x2c]
call fcn.00401480
mov edx, dword [esp + 0x14]
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], edx
cmp dword [ebp + 0x18], 0x10
mov eax, dword [esp + 0x18]
jb 0x4037c5
mov eax, dword [eax]
mov edx, dword [esi]
push 0x40c198
push eax
mov ecx, esi
call dword [edx + 4]
mov ebp, eax
cmp ebp, ebx
je 0x403682
mov eax, dword [esi]
push ebp
push 1
push 4
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
call dword [eax + 0x14]
cmp dword [esp + 0x1c], 0xbac04ac0
push ebp
je 0x40380a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
xor al, al
jmp 0x403a78
mov eax, dword [esi]
push 1
push 4
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov dword [esp + 0x3c], ebx
call dword [eax + 0x14]
cmp dword [esp + 0x2c], ebx
push ebp
ja 0x4037fc
mov eax, dword [esi]
push 1
push 1
lea ecx, [esp + 0x1e]
push ecx
mov ecx, esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x22], bl
call dword [eax + 0x14]
mov cl, byte [esp + 0x12]
test cl, cl
js 0x403a35
lea esp, [esp]
cmp eax, ebx
je 0x403a35
mov edx, dword [esi]
push ebp
push 1
push 1
lea eax, [esp + 0x1f]
push eax
mov ecx, esi
mov byte [esp + 0x23], bl
call dword [edx + 0x14]
movzx eax, byte [esp + 0x13]
mov edx, dword [esi]
push ebp
push eax
push 1
lea ecx, [esp + 0x104]
push ecx
mov ecx, esi
call dword [edx + 0x14]
movzx edx, byte [esp + 0x13]
mov eax, dword [esi]
push ebp
push 1
push 4
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov byte [esp + edx + 0x108], bl
mov dword [esp + 0x28], ebx
call dword [eax + 0x14]
mov edx, dword [esi]
push ebp
push 1
push 8
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0x14]
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401660
mov dword [esp + 0x204], 3
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
lea edx, [esp + 0x90]
push edx
lea edi, [esp + 0x34]
mov byte [esp + 0x208], 4
call fcn.00402a00
add esp, 4
lea ecx, [esp + 0x60]
push ecx
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x20c], 5
call fcn.00402ae0
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esi + 0x10]
mov byte [esp + 0x20c], 6
call fcn.00403470
mov edi, dword [eax]
lea ecx, [esp + 0xac]
call fcn.004026e0
cmp dword [esp + 0xa8], 0x10
jb 0x403957
mov eax, dword [esp + 0x94]
push eax
call fcn.00403dc1
add esp, 4
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x403984
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00403dc1
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x204], 0xffffffff
jb 0x4039b3
mov edx, dword [esp + 0x34]
push edx
call fcn.00403dc1
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [edi + 0x28], eax
lea eax, [esp + 0xf8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4039d4
sub eax, ecx
push eax
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [edi + 0x2c]
call fcn.00401570
mov eax, dword [esp + 0x14]
mov dword [edi + 0x50], eax
mov edx, dword [esp + 0x18]
mov dword [edi + 0x54], edx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x48], ecx
mov edx, dword [esp + 0x28]
push ebp
mov dword [edi + 0x4c], edx
mov edi, dword [esp + 0x1c]
push 1
add eax, edi
push 1
lea ecx, [esp + 0x1e]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x22], bl
call dword [eax + 0x14]
mov cl, byte [esp + 0x12]
test cl, cl
jns 0x403850
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x403a6e
lea esp, [esp]
mov ecx, dword [esp + 0x20]
cmp dword [eax + 0x28], ecx
jne 0x403a5c
add dword [eax + 0x50], edi
lea ecx, [esp + 0x14]
call fcn.004023e0
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x403a50
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 8]
mov al, 1
pop ebp
mov ecx, dword [esp + 0x1f8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1ec]
pop ebx
call fcn.00403d76
add esp, 0x1f8
ret 4