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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ced0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea eax, [edi + 0x38]
mov dword [ebp - 0x28], edi
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x70]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4320c4
xor esi, esi
cmp esi, dword [edi + 0x74]
jge 0x4320b4
mov ecx, dword [edi + 0x70]
lea ecx, [ecx + esi*4]
call fcn.004056e0
inc esi
jmp 0x4320a1
mov edx, dword [edi + 0x70]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [edi + 0x70], ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push 0x445c34
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x43228a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x1c], ebx
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x43226e
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432265
cmp dword [ebp - 0x1c], esi
jne 0x432265
push esi
push 0xc52da29e
push ebx
call fcn.00420590
add esp, 0xc
lea eax, [edi + 0x70]
mov byte [esi + ebx], 0
push eax
push 0xa
push ebx
call fcn.00420280
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x74]
add esp, 0xc
dec eax
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x432265
mov ecx, dword [edi + 0x70]
mov esi, dword [ecx + eax*4]
lea ebx, [ecx + eax*4]
cmp dword [esi - 0xc], 1
jle 0x4321a8
mov ecx, ebx
call fcn.00405770
mov edx, dword [esi - 8]
mov ecx, ebx
push edx
call fcn.00405710
test eax, eax
je 0x4321a8
mov eax, dword [ebx]
mov ecx, dword [esi - 8]
inc ecx
mov edx, dword [eax - 4]
push ecx
inc edx
push esi
push edx
push eax
call fcn.004023d0
add esp, 0x10
mov eax, dword [ebx]
xor esi, esi
mov cl, byte [eax]
test cl, cl
je 0x4321d1
cmp cl, 0xd
jne 0x4321c6
test esi, esi
jne 0x4321c8
push eax
mov esi, eax
call dword [sym.imp.USER32.dll_CharNextA]
jmp 0x4321ac
xor esi, esi
push eax
call dword [sym.imp.USER32.dll_CharNextA]
jmp 0x4321ac
test esi, esi
je 0x4321df
mov byte [esi], 0
mov eax, dword [ebx]
sub esi, eax
mov dword [eax - 8], esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x432256
mov ecx, dword [edi + 0x74]
mov eax, dword [ebp - 0x14]
dec ecx
cmp eax, ecx
je 0x432253
mov esi, dword [edi + 0x70]
lea ebx, [eax*4]
mov ecx, dword [0x444024]
add esi, ebx
mov eax, dword [esi]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x43222a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43222a
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.0043a372
add esp, 4
mov ecx, dword [ebp - 0x14]
mov esi, dword [edi + 0x74]
lea eax, [ecx + 1]
mov ecx, dword [edi + 0x70]
mov edx, eax
shl edx, 0x1e
sub edx, eax
lea eax, [ecx + eax*4]
add edx, esi
add ecx, ebx
shl edx, 2
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec dword [edi + 0x74]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x14], eax
jmp 0x432165
push ebx
call fcn.0043a372
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43228a
add edi, 0x38
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret