Function at 0x425010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x11c
cmp dword [0x45c4d0], 0
push ebx
push esi
push edi
push ebp
mov edi, ecx
je 0x43b8ac
cmp dword [0x45c4b4], 0
jne 0x43b8ac
mov ebx, dword [0x45c4d0]
push 0x20
mov ebp, dword [sym.imp.MSVCRT40.dll__fsopen]
push 0x456f28
push ebx
call ebp
add esp, 0xc
mov dword [0x466490], eax
test eax, eax
jne 0x43b8be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x11c
ret
mov ecx, dword [0x45c4c0]
call fcn.0043e6a3
mov ebx, eax
jmp 0x42503c
mov eax, dword [0x466490]
mov esi, dword [sym.imp.MSVCRT40.dll_fread]
push eax
push 0x68
push 1
push 0x468ce0
call esi
add esp, 0x10
mov ecx, dword [0x466490]
test byte [ecx + 0xc], 0x20
jne 0x43bbd9
mov ecx, 0x468ce0
mov edx, 0x456f20
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x43bbff
or al, al
je 0x43b916
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x43bbff
add ecx, 2
add edx, 2
or al, al
jne 0x43b8f2
xor eax, eax
test eax, eax
jne 0x43bbd9
cmp dword [0x468cec], 0x10157885
jne 0x43bbd9
cmp dword [0x468cf0], 0xb146808
jne 0x43bbd9
test byte [0x468d44], 2
je 0x43b981
mov ecx, 0x468cf4
mov edx, 0x45c714
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x43bc09
or al, al
je 0x43b977
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x43bc09
add ecx, 2
add edx, 2
or al, al
jne 0x43b953
xor eax, eax
test eax, eax
jne 0x43bbd9
test byte [0x468d44], 1
je 0x43bbd9
cmp dword [0x468d2c], 0
je 0x43bbd9
cmp dword [0x468d20], 0
je 0x43bae3
lea eax, [esp + 0x2c]
push eax
push 0x45c17c
call dword [sym.imp.MSVCRT40.dll__stat]
add esp, 8
cmp eax, 0xffffffff
jne 0x43b9cf
call dword [sym.imp.MSVCRT40.dll__errno]
cmp dword [eax], 2
je 0x43bae3
xor eax, eax
push 0x456f80
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x1000
lea ecx, [esp + 0x18]
push 0x45bf9c
mov dword [esp + 0x28], eax
push 0x45c48c
mov dword [esp + 0x30], eax
push 0x45c17c
call fcn.0041cf54
test eax, eax
jne 0x43ba1f
push 0x45c17c
mov edx, 0x162
mov ecx, 0x53
call fcn.004472b0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.0044db8f
test eax, eax
je 0x43bc13
mov eax, dword [0x468d40]
cmp dword [esp + 0x28], eax
jne 0x43bc13
mov dword [esp + 0x24], 1
cmp dword [esp + 0x1c], 0
mov ebx, 1
je 0x43ba6e
mov ecx, dword [esp + 0x1c]
call fcn.0044e735
mov dword [esp + 0x1c], 0
and eax, ebx
mov ebx, eax
cmp dword [0x4664c4], 1
mov eax, 1
jg 0x43ba7e
xor eax, eax
add eax, dword [0x466460]
jne 0x43baa2
cmp dword [esp + 0x20], 0
jne 0x43baa2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
call dword [eax + 0x24]
test eax, eax
je 0x43bc20
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
call dword [eax + 0x28]
test eax, eax
je 0x43bc20
and ebx, 1
mov dword [esp + 0x10], 0
test ebx, ebx
jne 0x43bad8
push 0x45c17c
push 0x1d7
call fcn.00447247
add esp, 8
cmp dword [esp + 0x24], 0
je 0x43bbd9
mov eax, dword [0x466490]
push eax
push 0x408
push 1
push 0x468d50
call esi
add esp, 0x10
mov eax, dword [0x466490]
test byte [eax + 0xc], 0x20
jne 0x43bbd9
test edi, edi
jne 0x43bc27
mov byte [0x45c37c], 0
mov edx, 0x469024
mov ecx, 0x45c37c
call fcn.00423084
test eax, eax
je 0x43bbd9
mov ecx, 1
call fcn.0044645b
test eax, eax
je 0x43bbd9
mov ecx, dword [0x468d2c]
call fcn.0040e85e
push 0
mov ecx, dword [0x466490]
mov dword [0x468cd8], eax
mov eax, dword [0x468d30]
push eax
push ecx
call dword [sym.imp.MSVCRT40.dll_fseek]
add esp, 0xc
mov ecx, dword [0x466490]
test byte [ecx + 0xc], 0x20
jne 0x43bbd9
push ecx
mov edx, dword [0x468cd8]
mov ecx, dword [0x468d2c]
push ecx
push 1
push edx
call esi
add esp, 0x10
mov ecx, dword [0x466490]
test byte [ecx + 0xc], 0x20
jne 0x43bbd9
xor bx, bx
mov eax, dword [0x468cd8]
mov edi, dword [0x466150]
mov dword [0x468cd0], eax
test edi, edi
je 0x43bc47
cmp word [edi], bx
jle 0x43bc47
mov eax, dword [edi + 8]
push 0
movsx ecx, bx
inc bx
xor edx, edx
mov ecx, dword [eax + ecx*4]
push ecx
mov ecx, 4
call fcn.00446cbb
test eax, eax
jne 0x43bbaa
mov eax, dword [0x466490]
push eax
call dword [sym.imp.MSVCRT40.dll_fclose]
add esp, 4
xor eax, eax
mov dword [0x466490], 0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x11c
ret
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x43b918
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x43b979
mov dword [esp + 0x24], 0
jmp 0x43ba4d
xor ebx, ebx
jmp 0x43baba
push 0x104
push edi
push 0x45c37c
call dword [sym.imp.MSVCRT40.dll_strncpy]
mov byte [0x45c47f], 0
add esp, 0xc
jmp 0x43bb18
push 1
call fcn.00425303
push eax
xor edx, edx
mov ecx, 7
call fcn.00446cbb
test eax, eax
je 0x43bbd9
xor bx, bx
mov edi, dword [0x460a84]
test edi, edi
je 0x43bc99
cmp word [edi], bx
jle 0x43bc99
mov eax, dword [edi + 8]
push 1
movsx ecx, bx
inc bx
xor edx, edx
mov ecx, dword [eax + ecx*4]
push ecx
mov ecx, 7
call fcn.00446cbb
test eax, eax
je 0x43bbd9
jmp 0x43bc6c
xor bx, bx
mov edi, dword [0x466118]
test edi, edi
je 0x43bccf
cmp word [edi], bx
jle 0x43bccf
mov ecx, dword [edi + 8]
push 1
movsx eax, bx
inc bx
xor edx, edx
mov eax, dword [ecx + eax*4]
mov ecx, 5
push eax
call fcn.00446cbb
test eax, eax
je 0x43bbd9
jmp 0x43bca2
mov eax, dword [0x468cd0]
mov eax, dword [eax]
cmp eax, 6
je 0x43bd02
cmp eax, 8
jne 0x43bbd9
mov ecx, dword [0x468cd0]
add ecx, 0xc
call fcn.00444d4b
mov ecx, dword [0x468cd0]
cmp eax, dword [ecx + 8]
je 0x43bd64
jmp 0x43bbd9
push 0x20
mov eax, dword [0x468cd0]
push 0x456f28
add eax, 0xc
push eax
call ebp
add esp, 0xc
mov edi, eax
test edi, edi
je 0x43bbd9
lea eax, [esp + 0x2c]
push edi
push 0x68
push 1
push eax
call esi
add esp, 0x10
mov eax, dword [edi + 0xc]
and eax, 0x20
push edi
cmp eax, 1
sbb ebx, ebx
call dword [sym.imp.MSVCRT40.dll_fclose]
neg ebx
add esp, 4
test ebx, ebx
je 0x43bbd9
mov eax, dword [0x468cd0]
mov ecx, dword [esp + 0x8c]
cmp dword [eax + 8], ecx
jne 0x43bbd9
mov eax, dword [0x468cd0]
mov eax, dword [eax + 4]
add eax, 0xc
add dword [0x468cd0], eax
mov ecx, dword [0x468cd0]
cmp dword [ecx], 0xc
jne 0x43bccf
mov eax, dword [0x466490]
push eax
call dword [sym.imp.MSVCRT40.dll_fclose]
mov dword [0x466490], 0
add esp, 4
cmp dword [0x4664f4], 0
jne 0x43bdd6
push 0x452e84
mov ecx, 0x386
push 0x38c
push 0x100
call fcn.00423321
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00414fda
lea ecx, [esp + 0x40]
add esp, 0x14
call fcn.00424b06
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x11c
ret