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

Disassembly:
mov eax, 0x479c36
call fcn.004461a8
sub esp, 0xb4
mov al, byte [ebp + 0xc]
and byte [ebp + 0xf], 0
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov byte [esi + 0x3ec], al
cmp dword [esi + 0x3a0], edi
je 0x437b2e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], 0x47e5a0
cmp eax, edi
mov dword [ebp - 0x34], 0x47e598
jne 0x437aa9
mov eax, 0x49cc4c
lea ecx, [ebp - 0x15]
push edi
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00408d43
lea eax, [ebp - 0x54]
push 1
push eax
lea eax, [ebp - 0xc0]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00437fbb
mov ebx, eax
lea eax, [esi + 4]
push 1
push eax
lea eax, [ebp - 0x98]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00437fbb
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00414a41
mov ebx, eax
lea ecx, [ebp - 0x98]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.00401bc7
and byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.00401bc7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00401bc7
test bl, bl
je 0x437b2e
mov byte [ebp + 0xf], 1
mov eax, dword [ebp + 8]
lea ecx, [esi + 4]
cmp eax, edi
jne 0x437b3d
mov eax, 0x49cc4c
push eax
call fcn.00401969
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x437b4f
mov eax, 0x47e5b8
push eax
call fcn.00441b9a
test eax, eax
je 0x437dbb
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x437b69
mov eax, 0x47e5b8
push edi
push edi
push 3
pop ebx
push ebx
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
push edi
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x437da8
push eax
call fcn.004461c7
mov dword [ebp + 8], eax
mov eax, str.PrereqEngine:
mov edx, eax
pop ecx
test edx, edx
mov byte [ebp - 4], 4
lea ecx, [esi + 0x3c0]
jne 0x437bbf
mov eax, 0x49cc4c
push eax
call fcn.00401969
and byte [esi + 0x25c], 0
and byte [esi + 0x25e], 0
and byte [esi + 0x25d], 0
lea ecx, [esi + 0x264]
mov byte [esi + 0x260], 1
call fcn.0043e684
mov eax, dword [0x47e654]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x298]
cmp eax, edi
je 0x437c0f
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call ebx
mov dword [esi + 0x298], edi
jmp 0x437c15
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x14]
lea ecx, [esi + 0x280]
push edi
call fcn.00409817
mov eax, dword [0x47e654]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x2c0]
cmp eax, edi
je 0x437c3f
push eax
call ebx
mov dword [esi + 0x2c0], edi
push dword [ebp - 0x14]
lea ecx, [esi + 0x2a8]
push edi
call fcn.00409817
cmp byte [ebp + 0xf], 0
jne 0x437ca8
mov eax, dword [0x47e654]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x2e8]
cmp eax, edi
je 0x437c6f
push eax
call ebx
mov dword [esi + 0x2e8], edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x2d0]
push edi
call fcn.00409817
mov eax, dword [0x47e654]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x310]
cmp eax, edi
je 0x437c99
push eax
call ebx
mov dword [esi + 0x310], edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x2f8]
push edi
call fcn.00409817
mov eax, dword [0x47e654]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x338]
cmp eax, edi
je 0x437cc3
push eax
call ebx
mov dword [esi + 0x338], edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x320]
push edi
call fcn.00409817
mov eax, dword [0x47e654]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x360]
cmp eax, edi
je 0x437ced
push eax
call ebx
mov dword [esi + 0x360], edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x348]
push edi
call fcn.00409817
mov eax, dword [0x47e654]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x3b0]
cmp eax, edi
je 0x437d17
push eax
call ebx
mov dword [esi + 0x3b0], edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x398]
push edi
call fcn.00409817
lea ecx, [esi + 0x270]
call fcn.0043e71c
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea ecx, [ebp - 0x70]
push dword [ebp + 8]
mov dword [ebp - 0x24], esi
call fcn.0043e535
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0042ce36
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0040a6bf
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0xc], edi
je 0x437d8e
push eax
lea ecx, [esi + 0x2f4]
call fcn.004095a6
push eax
lea ecx, [esi + 0x2cc]
call fcn.004095a6
mov ecx, esi
call fcn.0043a422
jmp 0x437d9f
push dword [ebp + 8]
call fcn.004454c4
pop ecx
cmp dword [ebp - 0x1c], edi
je 0x437dbb
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x437dbb
push dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc