Function at 0x449830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x51501c]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
mov dword [ecx], ebx
jne 0x449895
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
call fcn.0044a0e0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
jne 0x4498be
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
cmp edi, ebx
jne 0x4498c7
mov edi, 0x4f4b64
push esi
push edi
push 0x4f4b88
push ebx
lea ebx, [esp + 0x1c]
call fcn.00449650
mov edi, eax
add esp, 0x10
test edi, edi
je 0x449902
push esi
call dword [0x515348]
mov eax, edi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
je 0x44993e
lea ecx, [esp + 0x10]
push 0x4efb8c
push ecx
lea ebx, [esp + 0x14]
call fcn.00449650
mov edi, eax
add esp, 8
test edi, edi
jne 0x449ec3
mov esi, dword [esp + 0x24]
push esi
lea edx, [esp + 0x14]
push 0x4f4b9c
push edx
lea ebx, [esp + 0x18]
call fcn.00449650
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x449ec3
lea eax, [esp + 0x10]
push 0x4f4ba4
push eax
call fcn.00449650
mov edi, eax
add esp, 8
test edi, edi
jne 0x449ec3
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov edx, ebx
push edx
call fcn.00449550
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x449ec3
lea eax, [esp + 0x10]
push 0x4d8ef8
push eax
call fcn.00449650
mov edi, eax
add esp, 8
test edi, edi
jne 0x449ec3
mov esi, dword [esp + 0x20]
cmp dword [esi + 0x24], eax
je 0x4499eb
call fcn.0044a0e0
push eax
lea ecx, [esp + 0x14]
push 0x4f4bcc
push ecx
mov dword [esp + 0x3c], eax
call fcn.00449650
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x449ec3
mov ebx, esi
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x24], 0
je 0x449a40
xor esi, esi
cmp dword [ebx + 0x2c], esi
jne 0x449a10
mov eax, dword [ebx + 0xc]
call fcn.004497c0
mov esi, eax
test esi, esi
je 0x449e26
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
mov eax, ebx
jne 0x449a1b
mov eax, esi
mov edx, dword [esp + 0x30]
push eax
push edx
lea eax, [esp + 0x18]
push 0x4f4bfc
push eax
lea ebx, [esp + 0x1c]
call fcn.00449650
add esp, 0x10
test esi, esi
mov edi, eax
je 0x449a9a
push esi
jmp 0x449a91
test byte [esi + 0x28], 0x51
je 0x449aa6
cmp dword [esi + 0x2c], 0
jne 0x449a5a
mov eax, dword [esi + 0xc]
call fcn.004497c0
mov dword [esp + 0x28], eax
jmp 0x449a62
mov dword [esp + 0x28], 0
mov esi, dword [esi + 0x2c]
test esi, esi
mov eax, esi
jne 0x449a6f
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push 0x4f4c34
push ecx
lea ebx, [esp + 0x18]
call fcn.00449650
mov edi, eax
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x449a9a
push eax
call dword [0x515348]
add esp, 4
test edi, edi
jne 0x449e8d
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x449ace
push ebx
lea edx, [esp + 0x14]
push 0x4f4c44
push edx
lea ebx, [esp + 0x18]
call fcn.00449650
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x449e8d
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x20]
test esi, esi
je 0x449b0c
lea esp, [esp]
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x14]
push 0x4f4c58
push edx
lea ebx, [esp + 0x18]
call fcn.00449650
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x449e5b
mov esi, dword [esi + 4]
test esi, esi
jne 0x449ae0
jmp 0x449b14
test edi, edi
jne 0x449e5b
lea eax, [esp + 0x10]
push 0x4f4c60
push eax
lea ebx, [esp + 0x14]
call fcn.00449650
mov edi, eax
add esp, 8
test edi, edi
jne 0x449e8d
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x28]
test al, 3
jne 0x449bd6
test al, 0x10
je 0x449b66
lea edx, [esp + 0x10]
push edx
mov eax, ebx
push 1
push eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x14]
call fcn.00449550
add esp, 0xc
mov edi, eax
jmp 0x449da9
test al, 0x40
je 0x449bb5
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x30]
push 0x10
call dword [0x515344]
add esp, 4
test eax, eax
jne 0x449b87
lea edi, [eax + 0x1b]
jmp 0x449da9
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [esp + 0xc], eax
je 0x449ba5
mov dword [ecx], eax
add dword [esp + 0x10], edi
adc dword [esp + 0x14], 0
xor edi, edi
jmp 0x449da9
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
call fcn.00449550
add esp, 0xc
mov edi, eax
jmp 0x449da9
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xc]
push eax
push 0x4eede0
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x449bfe
call dword [sym.imp.MSVCR80.dll___iob_func]
mov esi, eax
mov dword [esp + 0x28], esi
jmp 0x449c16
mov ecx, dword [ebx + 0xc]
push 0x4d868c
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov esi, eax
mov dword [esp + 0x28], eax
test esi, esi
je 0x449d7a
call dword [sym.imp.MSVCR80.dll___iob_func]
cmp esi, eax
push esi
je 0x449cb3
call dword [sym.imp.MSVCR80.dll_fclose]
mov esi, dword [ebx + 0xc]
add esp, 4
push 0x10
call dword [0x515344]
mov edi, eax
add esp, 4
test edi, edi
jne 0x449c52
lea edi, [eax + 0x1b]
jmp 0x449da9
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [edi], 0
mov dword [edi + 8], esi
mov dword [edi + 4], 3
mov dword [esp + 0xc], edi
je 0x449c70
mov dword [eax], edi
mov eax, dword [edi + 8]
push eax
push 0x4eede0
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
je 0x449cac
mov eax, dword [edi + 8]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.MSVCR80.dll__stat64]
add esp, 8
test eax, eax
jne 0x449cac
mov ecx, dword [esp + 0x58]
add dword [esp + 0x10], ecx
mov edx, dword [esp + 0x5c]
adc dword [esp + 0x14], edx
xor edi, edi
jmp 0x449da9
push 0x200
lea eax, [esp + 0x80]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x449da9
xor edi, edi
push 0x10
call dword [0x515344]
mov esi, eax
add esp, 4
test esi, esi
je 0x449d73
lea ecx, [ebx + 1]
push ecx
mov dword [esi], 0
call dword [0x515344]
add esp, 4
test eax, eax
mov dword [esi + 8], eax
je 0x449d69
push ebx
lea edx, [esp + 0x7c]
push edx
push eax
call fcn.004c7ae8
mov eax, dword [esi + 8]
add esp, 0xc
cmp dword [esp + 0xc], 0
mov dword [esi + 0xc], ebx
mov byte [ebx + eax], 0
mov dword [esi + 4], 1
je 0x449d33
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
mov edx, dword [esp + 0x28]
add dword [esp + 0x10], ebx
push edx
push 0x200
adc dword [esp + 0x1c], 0
lea eax, [esp + 0x80]
push 1
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCR80.dll_fread]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x449cd7
jmp 0x449da9
push esi
call dword [0x515348]
add esp, 4
mov edi, 0x1b
jmp 0x449da9
cmp dword [esp + 0x34], 0
je 0x449d9a
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
mov esi, dword [esp + 0x34]
push edx
push 0x4f4c68
call fcn.0042dec0
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [eax], 0
mov edi, 0x1a
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x449dcb
test edi, edi
jne 0x449e8d
mov esi, dword [esp + 0x20]
mov ebx, eax
jmp 0x4499f1
test edi, edi
jne 0x449e8d
mov edx, dword [esp + 0x20]
cmp dword [edx + 0x24], edi
je 0x449e0b
mov esi, dword [esp + 0x30]
push esi
lea eax, [esp + 0x14]
push 0x4f4c84
push eax
lea ebx, [esp + 0x18]
call fcn.00449650
add esp, 0xc
push esi
mov edi, eax
call dword [0x515348]
add esp, 4
test edi, edi
jne 0x449ec3
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x20], eax
je 0x449ebf
mov esi, dword [esp + 0x24]
jmp 0x449910
lea edx, [esp + 0x2c]
push edx
call fcn.00449780
mov eax, dword [esp + 0x28]
add esp, 4
push eax
call dword [0x515348]
mov eax, 0x1b
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2c]
push ecx
call fcn.00449780
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call dword [0x515348]
mov eax, edi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x2c]
push eax
call fcn.00449780
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [0x515348]
mov eax, edi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x449ef5
lea edx, [esp + 0x2c]
push edx
call fcn.00449780
mov eax, dword [esp + 0x28]
add esp, 4
push eax
call dword [0x515348]
mov eax, edi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x14]
push 0x4f4c90
push ecx
lea ebx, [esp + 0x18]
call fcn.00449650
mov esi, eax
add esp, 0xc
test esi, esi
je 0x449f2c
lea edx, [esp + 0x2c]
push edx
call fcn.00449780
add esp, 4
push edi
call dword [0x515348]
jmp 0x449f4e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [0x515348]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x280]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret