Function at 0x449fe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x390
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3a0]
push edi
mov ecx, dword [esi + 0x224]
test ecx, ecx
je 0x44a3b5
call fcn.00441fe0
cmp eax, 0xffffffff
je 0x44a3b5
mov ecx, 0x97
xor eax, eax
lea edi, [esp + 0x40]
mov ebx, 0x88b8
rep stosd dword es:[edi], eax
lea edi, [esi + 0x120]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x198]
mov ebp, 1
push edi
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x29c]
push 0x104
push edx
call fcn.00433ca0
add esp, 8
lea eax, [esp + 0x29c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x29c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
je 0x44a3b5
cmp eax, 0xffffffff
je 0x44a3b5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 0x224]
push ebp
lea eax, [esp + 0x44]
push 0x25c
push eax
mov dword [esp + 0x58], 0x1000
call fcn.00442430
test eax, eax
je 0x44a3b5
push ebp
lea ecx, [esp + 0x44]
push 0x25c
push ecx
mov ecx, dword [esi + 0x224]
call fcn.004425a0
test eax, eax
je 0x44a3b5
cmp dword [esp + 0x40], ebx
je 0x44a0f8
mov dword [esi + 0x114], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44a119
mov dword [esi + 0x118], ebp
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
push 0x1002
call fcn.00461c33
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x44a17c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0x88c2
call edi
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x44a14c
mov dword [esp + 0x1c], 8
mov ecx, dword [esi + 0x224]
push ebp
lea edx, [esp + 0x18]
push 0x2c
push edx
call fcn.00442430
test eax, eax
jne 0x44a3c1
call edi
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov ecx, 0x400
xor eax, eax
mov edi, ebx
push 0
rep stosd dword es:[edi], eax
push 0
push 3
stosw word es:[edi], ax
push 0
push ebp
lea eax, [esp + 0x2b0]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
test ebp, ebp
jne 0x44a207
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0x88c2
call edi
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x114], eax
jne 0x44a1d1
mov dword [esp + 0x1c], 2
push 1
lea ecx, [esp + 0x18]
push 0x2c
push ecx
mov ecx, dword [esi + 0x224]
call fcn.00442430
test eax, eax
jne 0x44a1f1
call edi
mov dword [esi + 0x114], eax
push ebx
call fcn.0046185f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x390
ret
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x44a236
push 0
push 0
push 0
call fcn.0043daa0
add esp, 0xc
mov dword [esp + 0x38], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
push 0x1000
push ebx
push ebp
call edi
test eax, eax
mov dword [esp + 0x14], 0x88c2
je 0x44a303
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x50]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x44a28a
mov edx, dword [esp + 0x38]
push eax
push ebx
push edx
call fcn.0043daa0
add esp, 0xc
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x224]
push 1
lea eax, [esp + 0x18]
push 0x2c
push eax
mov dword [esp + 0x28], 0
call fcn.00442430
test eax, eax
je 0x44a2da
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x44a33d
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, dword [esi + 0x224]
push ebx
call fcn.00442430
test eax, eax
je 0x44a2da
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x44a33d
jmp 0x44a23c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x114], eax
call fcn.0046185f
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x44a31b
mov dword [esp + 0x1c], 0x1e
mov ecx, dword [esi + 0x224]
push 1
lea edx, [esp + 0x18]
push 0x2c
push edx
call fcn.00442430
test eax, eax
jne 0x44a343
call edi
mov dword [esi + 0x114], eax
jmp 0x44a343
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0046185f
mov ecx, dword [esi + 0x224]
add esp, 4
lea eax, [esp + 0x14]
push 1
push 0x2c
push eax
call fcn.004425a0
test eax, eax
jne 0x44a380
call edi
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44a3a5
mov dword [esi + 0x114], eax
mov dword [esi + 0x118], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x390
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret