Function at 0x45d950
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x45d969
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret 4
push 0x98
call sub.MFC42u.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x45d985
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
push 0x48c49c
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x45d9a7
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call esi
add esp, 0xc
test eax, eax
push ebx
je 0x45d9d0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x38], eax
call esi
add esp, 0x10
test eax, eax
push ebx
je 0x45d9fd
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
push 0x14
lea eax, [esp + 0x34]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esp + 0x4c]
mov dword [ebp + 4], ecx
mov edx, dword [esp + 0x4c]
lea eax, [edx*4]
push eax
call sub.MFC42u.DLL_operatornew
mov dword [ebp + 0x94], eax
mov al, byte [esp + 0x4c]
add esp, 0x14
test al, 1
jne 0x45da4a
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
test al, 4
je 0x45da62
mov ecx, dword [ebp + 4]
shl ecx, 2
push ecx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp], eax
jmp 0x45da69
mov dword [ebp], 0
push edi
mov edi, dword [esp + 0x3c]
shr edi, 1
mov eax, dword [ebp + 4]
and edi, 1
mov dword [esp + 0x18], edi
neg edi
sbb edi, edi
xor esi, esi
add edi, 4
test eax, eax
jbe 0x45db1a
mov edx, dword [esp + 0x38]
imul edx, dword [esp + 0x34]
lea eax, [edx*4 + 0x10]
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [ebp + 0x94]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebp + 0x94]
mov eax, dword [edx + esi*4]
mov dword [eax + 0xc], edi
mov ecx, dword [ebp + 0x94]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
mov dword [edx], eax
mov ecx, dword [ebp + 0x94]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx + esi*4]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x94]
lea edx, [ecx*4]
mov ecx, dword [eax + esi*4]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x94]
mov ecx, dword [edx + esi*4]
lea eax, [edx + esi*4]
inc esi
mov edx, dword [ecx]
mov dword [ebp + 0x8c], edx
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 4]
cmp esi, eax
mov dword [ebp + 0x90], ecx
jb 0x45da8b
mov edx, dword [esp + 0x38]
imul edx, dword [esp + 0x34]
shl edx, 1
push edx
call sub.MFC42u.DLL_operatornew
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
imul eax, dword [esp + 0x38]
push eax
call sub.MFC42u.DLL_operatornew
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
add esp, 8
mov dword [esp + 0x48], 0
test eax, eax
jbe 0x45dc8c
mov esi, dword [esp + 0x38]
test byte [esp + 0x3c], 4
je 0x45db84
mov ecx, dword [ebp]
mov edx, dword [esp + 0x48]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 4
lea eax, [ecx + edx*4]
push 1
push eax
call edi
mov esi, dword [esp + 0x48]
add esp, 0x10
jmp 0x45db8a
mov edi, dword [sym.imp.MSVCRT.dll_fread]
imul esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push ebx
shl esi, 1
push esi
push 1
push ecx
call edi
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x45dbbe
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
imul edx, dword [esp + 0x34]
push ebx
push edx
push 1
push eax
call edi
add esp, 0x10
mov esi, dword [esp + 0x38]
mov ecx, dword [ebp + 0x94]
mov edx, dword [esp + 0x48]
mov eax, esi
imul eax, dword [esp + 0x34]
mov ecx, dword [ecx + edx*4]
xor edi, edi
add ecx, 0x10
test eax, eax
jbe 0x45dc78
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov esi, ecx
mov ebx, ecx
sub esi, eax
sub ecx, eax
sub ebx, eax
add esi, 2
add ecx, 3
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
mov cl, byte [edx]
mov esi, dword [esp + 0x1c]
shl cl, 3
mov byte [ebx + eax], cl
mov cx, word [edx]
shr ecx, 3
and cl, 0xfc
mov byte [eax], cl
xor ecx, ecx
mov cl, byte [edx + 1]
and cl, 0xf8
mov byte [esi + eax], cl
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x45dc52
mov ecx, dword [esp + 0x14]
mov cl, byte [edi + ecx]
test cl, cl
jbe 0x45dc4e
mov ebx, dword [esp + 0x20]
and ecx, 0xff
lea ecx, [ecx*8 - 8]
jmp 0x45dc57
xor ecx, ecx
jmp 0x45dc57
mov ecx, 0xff
mov esi, dword [esp + 0x24]
inc edi
add edx, 2
mov byte [esi + eax], cl
mov esi, dword [esp + 0x38]
mov ecx, esi
add eax, 4
imul ecx, dword [esp + 0x34]
cmp edi, ecx
jb 0x45dc06
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x48], eax
jb 0x45db5c
mov edx, dword [esp + 0x10]
push edx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x38]
add esp, 8
test eax, eax
jne 0x45dcb9
mov ecx, 0x21
xor eax, eax
lea edi, [ebp + 8]
rep stosd dword es:[edi], eax
jmp 0x45dce2
mov ecx, dword [esp + 0x2c]
push 0
add ecx, 0xffffff7c
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 0x84
lea edx, [ebp + 8]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4