Function at 0x432940
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a09dc
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x6c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x6d8]
mov dword fs:[0], eax
lea eax, [esp + 0x1b4]
mov esi, ecx
call fcn.00402ec0
xor ebx, ebx
push ebx
push esi
lea eax, [esp + 0x1bc]
push eax
xor ecx, ecx
mov dword [esp + 0x6ec], ebx
call fcn.00402f30
mov eax, dword [esp + 0x2bc]
push 0xffffffffffffffff
lea ecx, [esp + 0x134]
xor edx, edx
push eax
lea esi, [esp + 0x134]
mov dword [esp + 0x134], ecx
mov word [esp + 0x138], dx
call fcn.00402160
mov eax, dword [0x4cc358]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
xor edx, edx
push eax
lea esi, [esp + 0x24]
xor edi, edi
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
call fcn.00402160
mov byte [esp + 0x6e0], 2
mov eax, dword [0x4cc3e0]
mov edx, esi
cmp word [eax], di
jne 0x432b00
mov ecx, dword [esp + 0x12c]
push ecx
push edx
call fcn.00402020
mov eax, dword [esp + 0x1c]
push edi
push 0x80
push 3
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432a66
mov byte [esp + 0x6e0], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x432cca
push eax
call fcn.0048836e
add esp, 4
jmp 0x432cca
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x432a9b
mov byte [esp + 0x6e0], 1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x432cca
push eax
call fcn.0048836e
add esp, 4
jmp 0x432cca
push ebx
mov dword [esp + 0x1c], 0
call fcn.0048690e
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebx
je 0x432ca9
push edi
call fcn.00487d04
mov byte [esp + 0x6e4], 1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
add esp, 4
xor edi, edi
cmp eax, ecx
je 0x432cca
push eax
call fcn.0048836e
add esp, 4
jmp 0x432cca
push eax
push edx
call fcn.00402020
mov eax, dword [0x511380]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x432b3a
mov byte [esp + 0x6e0], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x432cca
push eax
call fcn.0048836e
add esp, 4
jmp 0x432cca
mov ecx, dword [esp + 0x12c]
push 0xffffffffffffffff
lea edx, [esp + 0xac]
xor eax, eax
push ecx
lea esi, [esp + 0xac]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xac], edx
mov word [esp + 0xb0], ax
call fcn.00402160
push 0x4b08ac
mov edx, esi
push edx
mov ecx, 0x4b08a8
mov byte [esp + 0x6e8], 4
call fcn.00402610
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
je 0x432b9f
mov dword [0x5113b4], 0x80000
jmp 0x432bc5
mov esi, dword [eax + 4]
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x49c]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0041f7a0
mov dword [0x5113b4], eax
test eax, eax
je 0x432c06
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0xa8]
cmp eax, ecx
je 0x432be0
push eax
call fcn.0048836e
add esp, 4
mov byte [esp + 0x6e0], 1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x432cca
push eax
call fcn.0048836e
add esp, 4
jmp 0x432cca
mov ebx, dword [esp + 0x6c8]
test ebx, ebx
je 0x432bc5
push ebx
call fcn.0048690e
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [eax], 1
je 0x432c31
mov dword [0x5113b4], 0x80000
jmp 0x432c51
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 4]
push ebx
push edi
push ecx
push eax
call fcn.0041f880
mov dword [0x5113b4], eax
test eax, eax
je 0x432c8e
cmp eax, 0x600
je 0x432c8e
push edi
call fcn.00487d04
mov eax, dword [esp + 0xa8]
lea edx, [esp + 0xac]
add esp, 4
xor edi, edi
cmp eax, edx
je 0x432c77
push eax
call fcn.0048836e
add esp, 4
mov byte [esp + 0x6e0], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
jmp 0x432bf2
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0xa8]
cmp eax, edx
je 0x432ca9
push eax
call fcn.0048836e
add esp, 4
mov byte [esp + 0x6e0], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x432cc6
push eax
call fcn.0048836e
add esp, 4
test edi, edi
jne 0x432d3b
mov edx, dword [esp + 0x12c]
push 0
push 0x80
push 3
push 0
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x432d3b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x432d3b
push ebx
mov dword [esp + 0x18], 0
call fcn.0048690e
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebx
je 0x432d3b
push edi
call fcn.00487d04
add esp, 4
xor edi, edi
xor esi, esi
test edi, edi
je 0x432d57
push edi
mov eax, ebx
call fcn.00432db0
add esp, 4
push edi
mov esi, eax
call fcn.00487d04
add esp, 4
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x130]
cmp eax, ecx
je 0x432d72
push eax
call fcn.0048836e
add esp, 4
lea eax, [esp + 0x1b4]
call fcn.004042e0
mov eax, esi
mov ecx, dword [esp + 0x6d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c0]
xor ecx, esp
call fcn.00486dc0
mov esp, ebp
pop ebp
ret