Function at 0x445720
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
mov eax, dword [esp + 0x238]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x445836
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push 0x3c
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x2c]
push 4
push edx
push esi
mov dword [esp + 0x38], edi
call ebp
mov eax, dword [esp + 0x24]
push edi
push edi
push eax
push esi
call ebx
mov dword [esp + 0x140], edi
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x148]
push 0xf8
push edx
push esi
call ebp
mov edi, dword [esp + 0x146]
and edi, 0xffff
mov dword [esp + 0x20], edi
lea eax, [edi + edi*4]
shl eax, 3
push eax
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x44582f
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push eax
push esi
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c0]
push edi
push eax
push ecx
call fcn.00446510
add esp, 0xc
cmp eax, 0xffffffff
jne 0x445815
mov edx, dword [esp + 0x10]
push edx
jmp 0x445827
push 0
push 0
push eax
push esi
call ebx
cmp eax, 0xffffffff
jne 0x445845
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 4
xor ecx, ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], ecx
push ecx
push edx
push 0x14
push eax
push esi
mov dword [esp + 0x4c], ecx
call ebp
mov eax, dword [esp + 0x28]
test eax, eax
je 0x445958
jmp 0x445881
mov edi, dword [esp + 0x20]
push 1
push 0
push 0
push esi
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
push edi
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.00446510
add esp, 0xc
cmp eax, 0xffffffff
je 0x445a54
push 0
push 0
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x445a54
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
push 0x104
push ecx
push esi
call ebp
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push esi
call ebx
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x30]
push 0x14
push ecx
push esi
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__strcmpi]
lea edx, [esp + 0x3c]
push str.mfc42.dll
push edx
call edi
add esp, 8
test eax, eax
je 0x445a4c
lea eax, [esp + 0x3c]
push str.mfc42u.dll
push eax
call edi
add esp, 8
test eax, eax
je 0x445a4c
lea ecx, [esp + 0x3c]
push str.msvcrt.dll
push ecx
call edi
add esp, 8
test eax, eax
je 0x445a42
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x44587d
jmp 0x445a54
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x445a54
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x445a54
mov edx, dword [esp + 0x10]
push edi
push edx
push eax
call fcn.00446510
add esp, 0xc
cmp eax, 0xffffffff
je 0x445a54
push 1
push 0
push 0
push esi
call ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push edi
push eax
push ecx
call fcn.00446510
add esp, 0xc
cmp eax, 0xffffffff
je 0x445a54
push 0
push 0
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x445a54
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [esp + 0x44]
push 0x104
push eax
push esi
call ebp
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ecx
push esi
call ebx
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x30]
push 0x14
push eax
push esi
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__strcmpi]
lea ecx, [esp + 0x3c]
push str.mfc42.dll
push ecx
call edi
add esp, 8
test eax, eax
je 0x445a4c
lea edx, [esp + 0x3c]
push str.mfc42u.dll
push edx
call edi
add esp, 8
test eax, eax
je 0x445a4c
lea eax, [esp + 0x3c]
push str.msvcrt.dll
push eax
call edi
add esp, 8
test eax, eax
jne 0x445954
mov dword [esp + 0x18], 2
jmp 0x445a54
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 4