Function at 0x41d9f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4469d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x461e50]
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], eax
mov byte [esp + 7], 0
call dword [0x44e71c]
mov dword [esp + 0x54], 1
mov dword [esp + 8], 0
mov byte [esp + 0x54], 2
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
push 0x452604
push ecx
mov dword [eax], 0
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x41da80
mov byte [esp + 0x54], 1
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x20]
call dword [0x44e720]
xor al, al
jmp 0x41dc61
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fread]
push esi
push 6
lea edx, [esp + 0x24]
push 1
push edx
call edi
add esp, 0x10
cmp eax, 6
jne 0x41dc31
mov eax, dword [str.DMSK]
push 4
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x41dc31
mov ax, word [esp + 0x20]
cmp al, 2
jne 0x41dc31
test ah, ah
jne 0x41dc31
push esi
push 8
lea edx, [esp + 0x1c]
push 1
push edx
call edi
add esp, 0x10
cmp eax, 8
jne 0x41dc31
mov eax, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x68]
push eax
mov ecx, ebp
call dword [0x44e6f4]
cmp dword [ebp + 0x18], 0x10
jb 0x41db07
mov eax, dword [ebp + 4]
jmp 0x41db0a
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push 1
push eax
call edi
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ecx
pop ebp
jne 0x41dc31
push esi
push 0xc
lea edx, [esp + 0x48]
push 1
push edx
call edi
add esp, 0x10
cmp eax, 0xc
jne 0x41dc31
mov eax, dword [esp + 0x48]
cmp eax, 0x400
jg 0x41dc31
push eax
lea ecx, [esp + 0x28]
call dword [0x44e6f4]
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x41db66
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x48]
push esi
push ecx
push 1
push eax
call edi
mov ecx, dword [esp + 0x58]
add esp, 0x10
cmp eax, ecx
jne 0x41dc31
mov eax, dword [esp + 0x44]
cmp eax, 0x1400000
jg 0x41dc31
push eax
call sub.MFC71.DLL_operator_new_1
add esp, 4
push eax
lea ecx, [esp + 0x10]
call fcn.0041d740
mov edx, dword [esp + 0x40]
push 0
push edx
push esi
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41dc31
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
push esi
push eax
push 1
push ecx
call edi
mov ecx, dword [esp + 0x54]
add esp, 0x10
cmp eax, ecx
jne 0x41dc31
push 0x1c
call sub.MFC71.DLL_operator_new
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov byte [esp + 0x58], 4
test edi, edi
je 0x41dbfa
mov ecx, edi
call dword [sym.imp.dmcommon.dll_public:_void___thiscall_utilitys::CPaintImage::constructor_void_]
mov dword [edi], 0x4525ec
jmp 0x41dbfc
xor edi, edi
mov byte [esp + 0x58], 2
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, edi
call dword [sym.imp.dmcommon.dll_public:_bool___thiscall_utilitys::CPaintImage::LoadFromMemory_void_const___int_]
test al, al
je 0x41dc24
mov ecx, dword [esp + 0x68]
mov dword [ecx], edi
mov byte [esp + 0xb], 1
jmp 0x41dc31
test edi, edi
je 0x41dc31
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x14]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x10]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 8
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x24]
call dword [0x44e720]
mov al, byte [esp + 0xb]
pop edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x48]
pop esi
call fcn.00443e74
add esp, 0x54
ret