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

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4a6d3c]
xor ebx, ebx
mov ebp, ebx
call fcn.00443ddd
mov edi, eax
call fcn.0043300a
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x432d1d
mov esi, 0x48900e
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0xc0000000
mov dword [edi + 0xc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
call ebx
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x432dbc
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push esi
call ebx
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x432d73
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
push esi
call ebx
mov dword [edi], eax
cmp dword [edi], 0xffffffff
mov dword [edi + 0xc], 1
jne 0x432dbc
mov eax, dword [esp + 0x20]
xor ebx, ebx
push esi
mov dword [edi], ebx
mov dword [edi + 0x2c], eax
mov dword [edi + 0x18], ebx
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push ebx
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 4], eax
test eax, eax
je 0x432f8c
push esi
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x432f8c
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
and dword [edi + 0x18], ebp
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [edi + 0x2c], eax
cmp ebx, 3
jl 0x432e27
push 0
lea eax, [esp + 0x18]
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call esi
cmp dword [esp + 0x14], 3
jne 0x432e1a
push 3
lea eax, [esp + 0x14]
push 0x489070
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x432e1a
mov dword [edi + 0x18], 0xfde9
sub ebx, 3
jmp 0x432e27
xor eax, eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
jle 0x432e55
lea eax, [ebx + 2]
push eax
push 0
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x10], eax
test eax, eax
je 0x432e55
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push dword [edi]
call esi
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x432f8c
xor ecx, ecx
mov word [eax + ebx], cx
mov esi, dword [edi + 0x10]
push 0xa
lea eax, [esi + ebx]
mov dword [edi + 0x14], eax
pop ebx
cmp esi, eax
jae 0x432f8c
mov al, byte [esi]
cmp al, 0x20
je 0x432e84
cmp al, 9
jne 0x432e87
inc esi
jmp 0x432e7a
mov al, byte [esi]
cmp al, 0x3b
jne 0x432ec6
inc esi
cmp byte [esi], 0x20
jne 0x432e94
inc esi
push esi
push 2
lea eax, [edi + 0x1c]
push ebp
push eax
call fcn.00432fa5
add esp, 0x10
mov ebp, eax
jmp 0x432ebc
mov cl, byte [esi]
cmp cl, bl
je 0x432f75
cmp cl, 0xd
je 0x432f75
inc esi
cmp byte [esi], 0
jne 0x432ea8
jmp 0x432f75
cmp al, 0x5b
jne 0x432f0e
inc esi
lea eax, [edi + 0x1c]
push esi
push 1
push ebp
push eax
call fcn.00432fa5
add esp, 0x10
mov ebp, eax
jmp 0x432eee
mov al, byte [esi]
cmp al, 0x5d
je 0x432ef8
cmp al, bl
je 0x432ef3
cmp al, 0xd
je 0x432ef3
inc esi
cmp byte [esi], 0
jne 0x432edf
cmp byte [esi], 0x5d
jne 0x432f75
mov byte [esi], 0
jmp 0x432f05
cmp al, bl
je 0x432f78
cmp al, 0xd
je 0x432f79
inc esi
mov al, byte [esi]
test al, al
jne 0x432efd
jmp 0x432f79
cmp al, bl
je 0x432f79
cmp al, 0xd
je 0x432f79
mov edx, esi
jmp 0x432f29
cmp al, 0x3d
je 0x432f2d
cmp al, 0xd
je 0x432f2d
cmp al, bl
je 0x432f2d
inc esi
mov al, byte [esi]
test al, al
jne 0x432f1a
lea eax, [esi - 1]
jmp 0x432f3f
mov cl, byte [eax]
cmp cl, 0x20
je 0x432f3e
cmp cl, 9
jne 0x432f43
dec eax
cmp eax, edx
ja 0x432f32
mov byte [eax + 1], 0
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x432f47
cmp al, 9
je 0x432f47
push esi
push edx
lea eax, [edi + 0x1c]
push ebp
push eax
call fcn.00432fa5
add esp, 0x10
mov ebp, eax
jmp 0x432f70
mov al, byte [esi]
cmp al, bl
je 0x432f75
cmp al, 0xd
je 0x432f75
inc esi
cmp byte [esi], 0
jne 0x432f65
mov byte [esi], 0
inc esi
mov al, byte [esi]
cmp al, bl
je 0x432f78
cmp al, 0xd
je 0x432f78
cmp esi, dword [edi + 0x14]
jb 0x432e7a
mov eax, dword [edi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8