Function at 0x45d54c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
mov eax, dword [ebp + 0xc]
cmp dword [eax*4 + 0x595080], 0
jne 0x45d56d
mov eax, 1
jmp 0x45dcd9
mov dword [ebp - 0x220], 0
mov ecx, dword [ebp + 0x14]
and ecx, 2
test ecx, ecx
jne 0x45d6b8
cmp dword [ebp + 8], 0
jne 0x45d59e
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
jmp 0x45d5de
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045a732
add esp, 0x10
test eax, eax
je 0x45d5c7
mov eax, 1
jmp 0x45dcd9
mov edx, dword [ebp + 8]
add edx, 0x110
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
cmp dword [ecx + 0x594bf8], 0xffffffff
je 0x45d5f9
mov edx, dword [ebp + 0xc]
push edx
call fcn.0045cf0e
add esp, 4
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov dword [eax + 0x594c4c], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594bf8], eax
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
cmp dword [eax + 0x594bf8], 0xffffffff
jne 0x45d64d
mov eax, 2
jmp 0x45dcd9
push 0
push 0
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bf8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x100
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594bf8]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594bf8]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 4], 0x100
jae 0x45d6b6
mov eax, 2
jmp 0x45dcd9
jmp 0x45d6eb
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045b49a
add esp, 4
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x594c4c], eax
push 0x100
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0045ab60
add esp, 0xc
mov eax, dword [ebp + 0x14]
and eax, 1
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c14], eax
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594bf8], 0xffffffff
lea eax, [ebp - 0x104]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c08], 0
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c24], 0xffff
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + ecx]
cmp eax, dword [0x464ff4]
jne 0x45d766
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c24], 0
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c08]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + eax]
cmp edx, dword [0x464ffc]
jne 0x45d793
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov dword [eax + 0x594c24], 1
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
cmp dword [ecx + 0x594c24], 0xffff
jne 0x45d7af
mov eax, 2
jmp 0x45dcd9
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c24]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x45d7dc
cmp dword [ebp - 0x22c], 1
je 0x45daa0
jmp 0x45db44
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
add edx, 4
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov dword [eax + 0x594c08], edx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
add edx, 4
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov dword [eax + 0x594c08], edx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + edx]
cmp ecx, dword [0x465004]
je 0x45d839
mov eax, 2
jmp 0x45dcd9
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c08]
add eax, 4
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c08], eax
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c08]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + eax]
cmp edx, dword [0x46500c]
je 0x45d87b
mov eax, 2
jmp 0x45dcd9
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
add ecx, 4
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c08], ecx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
add edx, 4
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov dword [eax + 0x594c08], edx
cmp dword [ebp - 0x228], 0x12
jbe 0x45d8df
mov eax, 2
jmp 0x45dcd9
mov dword [ebp - 0x21c], 0
jmp 0x45d8fa
mov ecx, dword [ebp - 0x21c]
add ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x228]
jae 0x45d932
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x224]
add ecx, dword [eax + 0x594c08]
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
mov cl, byte [ecx + eax]
mov byte [ebp + edx - 0x218], cl
jmp 0x45d8eb
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c08]
add eax, dword [ebp - 0x228]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c08], eax
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c08]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + eax]
cmp edx, dword [0x465014]
jne 0x45d98d
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
add ecx, 4
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c08], ecx
jmp 0x45da32
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
add ecx, 4
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c08], ecx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
mov eax, dword [eax + 0x594c08]
mov ecx, dword [ebp - 0x224]
add eax, dword [ecx + edx]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c08], eax
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
add ecx, 4
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c08], ecx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + ecx]
cmp eax, dword [0x46501c]
je 0x45da17
mov eax, 2
jmp 0x45dcd9
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
add edx, 4
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov dword [eax + 0x594c08], edx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x594c08]
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + edx]
mov dword [eax + 0x594c00], edx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c00]
shr ecx, 1
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c04], ecx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x594c08]
add ecx, 4
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c08], ecx
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045b60d
add esp, 8
jmp 0x45db44
mov dword [ebp - 0x21c], 0
jmp 0x45dabb
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
cmp dword [ebp - 0x21c], 0x26
jae 0x45dae0
mov eax, dword [ebp - 0x224]
add eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x21c]
mov dl, byte [eax]
mov byte [ecx + 0x594f48], dl
jmp 0x45daac
xor eax, eax
mov ax, word [0x594f4e]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c08], eax
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [0x594f5e]
mov dword [edx + 0x594c04], eax
mov ecx, dword [0x594f62]
sub ecx, 1
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c20], ecx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [eax + 0x594c04]
mov dword [ecx + 0x594c00], edx
mov eax, dword [0x594f56]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045b60d
add esp, 8
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov eax, dword [edx + 0x594c08]
add eax, dword [ebp - 0x220]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov dword [ecx + 0x594c08], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [0x594f66]
mov dword [edx*4 + 0x595058], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x594f6a]
mov dword [ecx*4 + 0x594f70], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax*4 + 0x594f70], 0
jne 0x45dba4
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x594c04]
mov dword [edx*4 + 0x594f70], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx*4 + 0x595058]
xor edx, edx
mov ecx, 0x46
div ecx
test edx, edx
je 0x45dc0d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x595058]
xor edx, edx
mov ecx, 0x46
div ecx
imul eax, eax, 0x46
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x595058]
sub eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx*4 + 0x594f70]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax*4 + 0x594f70], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x21c]
mov dword [ecx*4 + 0x595058], edx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx*4 + 0x594f70]
cmp edx, dword [eax + 0x594c04]
jae 0x45dc3b
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx*4 + 0x594f70]
mov dword [eax + 0x594c04], edx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x595058]
xor edx, edx
mov esi, 0x46
div esi
imul eax, eax, 0x48
mov ecx, dword [ecx + 0x594c08]
add ecx, eax
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594c0c], ecx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
cmp dword [eax + 0x594c4c], 0
jne 0x45dca7
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x58
mov dword [edx + 0x594bf8], eax
jmp 0x45dccb
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x58
mov edx, dword [eax + 0x594c4c]
add edx, dword [ecx + 0x594c08]
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x58
mov dword [eax + 0x594c4c], edx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045cf8c
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret