Function at 0x432fe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
xor edi, edi
mov ebx, ecx
push edi
push eax
lea ecx, [esp + 0x30]
push 4
push ecx
push esi
call ebp
test eax, eax
jne 0x433013
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], edi
cmp eax, edi
jbe 0x433214
lea edx, [esp + 0x1c]
push edi
push edx
lea eax, [esp + 0x28]
push 2
push eax
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
call ebp
lea ecx, [esp + 0x1c]
push edi
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push esi
call ebp
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4331ff
push eax
call fcn.00463c77
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
push edi
push esi
mov dword [esp + 0x40], edi
call ebp
push 8
call fcn.0046335e
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x43308d
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov ebp, eax
mov eax, dword [ebp]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4330a1
push eax
call fcn.00463db1
add esp, 4
push esi
call fcn.00463c77
mov ecx, esi
mov dword [ebp + 4], esi
mov edx, ecx
mov esi, edi
mov edi, eax
mov dword [ebp], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x48], ebp
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov edx, dword [0x4a2dcc]
mov word [esp + 0x40], cx
mov esi, dword [eax + 4]
mov edi, eax
cmp esi, edx
mov al, 1
je 0x4330fd
cmp cx, word [esi + 0xc]
mov edi, esi
setb al
test al, al
je 0x4330f6
mov esi, dword [esi]
jmp 0x4330f9
mov esi, dword [esi + 8]
cmp esi, edx
jne 0x4330e5
mov cl, byte [ebx + 8]
test cl, cl
je 0x433127
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
push ecx
push edi
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebx
mov byte [esp + 0x24], 1
call fcn.00433c90
push eax
jmp 0x4331ac
test al, al
mov dword [esp + 0x18], edi
je 0x43316e
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
call fcn.00470c40
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
cmp ecx, edx
jne 0x433165
lea edx, [esp + 0x11]
lea eax, [esp + 0x40]
push edx
push eax
push edi
lea ecx, [esp + 0x44]
push esi
push ecx
mov ecx, ebx
mov byte [esp + 0x25], 1
call fcn.00433c90
push eax
jmp 0x4331ac
lea ecx, [esp + 0x18]
call fcn.00434080
mov edx, dword [esp + 0x18]
mov ax, word [edx + 0xc]
cmp ax, word [esp + 0x40]
jae 0x43319d
lea ecx, [esp + 0x12]
lea edx, [esp + 0x40]
push ecx
push edx
push edi
lea eax, [esp + 0x48]
push esi
push eax
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.00433c90
push eax
jmp 0x4331ac
lea ecx, [esp + 0x13]
lea edx, [esp + 0x18]
push ecx
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x50]
call fcn.00438490
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x48]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00438490
mov al, byte [esp + 0x54]
test al, al
jne 0x4331e6
test ebp, ebp
je 0x4331e6
mov edx, dword [ebp]
push edx
call fcn.00463db1
push ebp
call fcn.00463110
add esp, 8
mov eax, dword [esp + 0x2c]
push eax
call fcn.00463db1
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x433023
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 4