Function at 0x414540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x46ae20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
cmp dword [ebp + 8], 0
jne 0x414566
xor eax, eax
jmp 0x414845
push 0x45793c
mov eax, dword [ebp + 8]
push eax
call fcn.0043b110
add esp, 8
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x21c]
cmp dword [edx + 4], 0
je 0x41482f
push 2
push 0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
push ecx
call fcn.00438475
add esp, 0xc
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 4]
push eax
call fcn.0043afde
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 4]
push edx
call fcn.00438475
add esp, 0xc
mov ecx, dword [ebp - 0x21c]
call fcn.004149f0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
push ecx
push 1
push 0xc
mov edx, dword [ebp - 0x21c]
add edx, 0x10
push edx
call fcn.00438a1e
add esp, 0x10
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x21c]
add ecx, dword [edx + 0x18]
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax + 0x10]
sub edx, ecx
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x12a
call fcn.00402ba0
test eax, eax
jne 0x414647
push 0
push 0
push str.Bin_File_Version_Error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x414845
mov ecx, dword [ebp - 0x21c]
add ecx, 0x12a
call fcn.00402b50
test eax, eax
je 0x41474d
mov eax, dword [ebp - 4]
sub eax, 0xe
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00418d3a
add esp, 4
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x214]
mov dword [edx + 0x1e], eax
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0x1e], 0
jne 0x41469d
xor eax, eax
jmp 0x414845
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x1e]
push ecx
call fcn.00437e00
add esp, 0xc
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x1e]
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x12a
call fcn.00402c20
test eax, eax
jne 0x414729
mov ecx, dword [ebp - 0x21c]
call fcn.004149f0
mov eax, dword [ebp + 8]
push eax
push str.File_Open_Error_:__s
lea ecx, [ebp - 0x210]
push ecx
call fcn.0043bd4b
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x414845
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
push ecx
call fcn.0043ac1e
add esp, 4
mov edx, dword [ebp - 0x21c]
mov dword [edx + 4], 0
jmp 0x41482d
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
mov edx, dword [ebp - 0x21c]
add edx, 0x1c
push edx
call fcn.00438a1e
add esp, 0x10
mov eax, dword [ebp - 0x21c]
cmp dword [eax + 0x18], 0
je 0x4147c8
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00418d3a
add esp, 4
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
mov dword [eax + 0x1e], ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x18]
push edx
push 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x1e]
push ecx
call fcn.00438a1e
add esp, 0x10
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 4]
push eax
push 1
push 1
mov ecx, dword [ebp - 0x21c]
add ecx, 0x1d
push ecx
call fcn.00438a1e
add esp, 0x10
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 4]
push eax
call fcn.0043ac1e
add esp, 4
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 0x21c]
call fcn.00414860
test eax, eax
jne 0x41481a
xor eax, eax
jmp 0x414845
mov ecx, dword [ebp - 0x21c]
call fcn.004148e0
test eax, eax
jne 0x41482d
xor eax, eax
jmp 0x414845
jmp 0x414833
xor eax, eax
jmp 0x414845
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x22], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043876f
mov esp, ebp
pop ebp
ret 4