Function at 0x430ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 8]
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0xc]
lea ebx, [esi + 4]
push eax
push ecx
mov ecx, ebx
mov dword [ebp - 0x2c], esi
call fcn.0040ac80
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0x445928
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x20], edi
je 0x4313b8
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x80]
push 0x1c
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4313b1
cmp dword [ebp - 0x18], 0x1c
jne 0x4313b1
cmp dword [ebp - 0x80], 0x4c574141
jne 0x4313b1
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x7c]
cmp eax, 1
mov dword [esi + 0x50], edx
jbe 0x430e00
cmp eax, 2
jne 0x430e03
mov eax, dword [ebp - 0x20]
mov ecx, 7
lea esi, [ebp - 0x80]
lea edi, [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x18]
push 0
push ecx
lea edx, [ebp - 0x98]
push 0x18
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430df7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x94]
mov dword [eax + 0x58], ecx
mov ecx, dword [ebp - 0x90]
mov dword [eax + 0x5c], edx
mov edx, dword [ebp - 0x8c]
mov dword [eax + 0x60], ecx
mov ecx, dword [ebp - 0x88]
mov dword [eax + 0x64], edx
mov edx, dword [ebp - 0x84]
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
cmp eax, 2
jae 0x430e39
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x64]
push 0xc
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430ea5
cmp dword [ebp - 0x18], 0xc
jne 0x430ea5
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x64]
push edx
push 1
push eax
mov ecx, ebx
call fcn.0040acd0
jmp 0x430e05
jne 0x4313b1
lea ecx, [ebp - 0x18]
push 0
push ecx
lea edx, [ebp - 0x1c]
push 4
push edx
push edi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430ea5
cmp dword [ebp - 0x18], 4
jne 0x430ea5
mov eax, dword [ebp - 0x1c]
xor edi, edi
test eax, eax
jbe 0x430ea5
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x64]
push 0xc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430ea5
cmp dword [ebp - 0x18], 0xc
jne 0x430ea5
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x64]
push ecx
push 1
push eax
mov ecx, ebx
call fcn.0040acd0
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, eax
jb 0x430e6c
cmp dword [ebp - 0x7c], 2
jne 0x4313ae
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
je 0x430eeb
cmp ebx, dword [esi + 0x18]
jge 0x430ed1
mov edx, dword [esi + 0x14]
lea ecx, [edx + ebx*4]
call fcn.004056e0
inc ebx
jmp 0x430ebe
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push eax
call edi
add esp, 4
mov dword [esi + 0x14], 0
xor ebx, ebx
jmp 0x430ef1
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
cmp dword [esi + 0x20], ebx
je 0x430f21
cmp ebx, dword [esi + 0x24]
jge 0x430f0f
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + ebx*4]
call fcn.004056e0
inc ebx
jmp 0x430efc
mov edx, dword [esi + 0x20]
push edx
call edi
add esp, 4
mov dword [esi + 0x20], 0
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
cmp dword [esi + 0x2c], ebx
je 0x430f4f
cmp ebx, dword [esi + 0x30]
jge 0x430f3f
mov eax, dword [esi + 0x2c]
lea ecx, [eax + ebx*4]
call fcn.004056e0
inc ebx
jmp 0x430f2c
mov ecx, dword [esi + 0x2c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2c], 0
mov edi, dword [ebp - 0x20]
xor ebx, ebx
lea edx, [ebp - 0x18]
push ebx
push edx
lea eax, [ebp - 0x28]
push 4
push eax
push edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431382
cmp dword [ebp - 0x18], 4
jne 0x431382
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jbe 0x431382
cmp eax, 0x3b9aca00
jae 0x431382
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x431382
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
push ebx
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431376
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
jne 0x431376
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov ecx, dword [ebp - 0x1c]
push eax
push 0xc52da29e
push ecx
mov byte [ebp - 4], 1
call fcn.00420590
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [eax + edx], bl
push ecx
push 0xa
push eax
call fcn.00420280
add esp, 0xc
cmp eax, ebx
je 0x43136a
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x4c]
jae 0x43136a
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 2
mov eax, dword [ecx + eax*4]
cmp dword [eax - 8], ebx
jle 0x43134d
lea edx, [ebp - 0x3c]
push edx
push 0xd
push eax
call fcn.00420280
add esp, 0xc
test eax, eax
je 0x43134d
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 4]
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x431072
mov dword [ebp - 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x431096
mov eax, dword [0x444020]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx + 4]
test esi, esi
jne 0x431085
xor eax, eax
jmp 0x43108c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0041a970
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00432320
mov edi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.MSVCRT.dll__ismbcspace]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
mov byte [ebp - 0x54], cl
mov edx, dword [ebp - 0x54]
and edx, 0xff
push edx
call ebx
add esp, 4
test eax, eax
je 0x4310d0
push edi
call esi
mov edi, eax
jmp 0x4310b1
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 8]
mov ecx, dword [eax - 4]
sub esi, edi
add esi, eax
inc ecx
lea edx, [esi + 1]
cmp ecx, edx
jb 0x4310f4
push edx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [eax - 8], esi
call fcn.00432320
mov edi, dword [ebp - 0x14]
xor esi, esi
mov al, byte [edi]
test al, al
je 0x43113d
mov byte [ebp - 0x50], al
mov eax, dword [ebp - 0x50]
and eax, 0xff
push eax
call ebx
add esp, 4
test eax, eax
je 0x431130
test esi, esi
jne 0x431132
push edi
mov esi, edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x431104
xor esi, esi
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x431104
test esi, esi
je 0x43114c
mov byte [esi], 0
mov eax, dword [ebp - 0x14]
sub esi, eax
mov dword [eax - 8], esi
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x14]
cmp ecx, eax
jne 0x43118b
test eax, eax
mov ebx, 1
je 0x43116e
lea ebx, [ecx + ecx]
mov eax, dword [esi]
lea edx, [ebx*4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x4311a1
mov dword [esi + 8], ebx
mov dword [esi], eax
mov ebx, dword [esi + 4]
mov ecx, dword [ebp - 0x58]
inc ebx
push ecx
mov eax, ebx
mov ecx, esi
dec eax
mov dword [esi + 4], ebx
push eax
call fcn.004209a0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x43133e
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x20]
cmp ecx, eax
jne 0x4311e5
test eax, eax
mov ebx, 1
je 0x4311c8
lea ebx, [ecx + ecx]
mov ecx, dword [esi]
lea eax, [ebx*4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x4311f9
mov dword [esi + 8], ebx
mov dword [esi], eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x14]
inc eax
push edx
mov dword [esi + 4], eax
dec eax
push eax
mov ecx, esi
call fcn.004209a0
cmp dword [ebp - 0x38], 2
jle 0x431261
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi + 0x30]
lea ebx, [eax + 8]
mov eax, dword [edi + 0x34]
cmp ecx, eax
jne 0x43123e
test eax, eax
mov esi, 1
je 0x43121b
lea esi, [ecx + ecx]
mov edx, dword [edi + 0x2c]
lea ecx, [esi*4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x43133e
mov dword [edi + 0x34], esi
mov dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
inc ecx
mov dword [edi + 0x30], ecx
mov eax, ecx
mov ecx, dword [edi + 0x2c]
lea ecx, [ecx + eax*4 - 4]
test ecx, ecx
je 0x43133e
push ebx
call fcn.004209d0
jmp 0x43133e
mov edx, dword [0x444020]
mov eax, 0x4450c4
test eax, eax
mov dword [ebp - 0x24], edx
je 0x4312c1
mov ecx, eax
shr ecx, 0x10
jne 0x43128f
xor eax, eax
mov edx, 0x4450c4
mov ax, dx
lea ecx, [ebp - 0x24]
push eax
call fcn.00405370
jmp 0x4312c1
push 0x4450c4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4312c1
push esi
lea ecx, [ebp - 0x24]
call fcn.00405710
test eax, eax
je 0x4312c1
mov eax, dword [ebp - 0x24]
push esi
inc esi
push 0x4450c4
push esi
push eax
call fcn.004023d0
add esp, 0x10
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
lea esi, [edi + 0x2c]
cmp ecx, eax
mov byte [ebp - 4], 4
jne 0x4312fb
test eax, eax
mov edi, 1
je 0x4312de
lea edi, [ecx + ecx]
mov edx, dword [esi]
lea ecx, [edi*4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x431311
mov dword [esi + 8], edi
mov dword [esi], eax
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x24]
inc edi
push ecx
mov eax, edi
mov ecx, esi
dec eax
mov dword [esi + 4], edi
push eax
call fcn.004209a0
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x444024]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x43133e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43133e
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
push eax
call fcn.0043a372
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004056e0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0042cbd0
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
inc eax
xor ebx, ebx
mov dword [ebp - 0x30], eax
jmp 0x43101a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0042cbd0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0043a372
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4313b1
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 4]
call fcn.0040b4a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret