Function at 0x41fde0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446d95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
mov eax, dword [0x461e50]
push ebx
push ebp
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x4b4], eax
call fcn.0041de30
mov ebx, eax
xor esi, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c0], esi
mov eax, dword [esp + 0x4c8]
push 0x452604
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, esi
mov dword [esp + 0x2c], ebp
jne 0x41fe97
mov dword [esp + 0x4c0], 0xffffffff
mov eax, dword [ebx]
cmp eax, ebx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [esp + 0x28], esi
je 0x41fe83
lea esp, [esp]
mov esi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x41fe70
xor esi, esi
push ebx
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [esp + 0x24], esi
xor al, al
jmp 0x41ffcb
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fread]
push ebp
push 6
lea ecx, [esp + 0x94]
push 1
push ecx
call edi
add esp, 0x10
cmp eax, 6
jne 0x41ff45
mov edx, dword [str.DMSK]
push 4
push edx
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x41ff45
mov ax, word [esp + 0x90]
cmp al, 2
jne 0x41ff45
test ah, ah
jne 0x41ff45
push ebp
push 8
lea ecx, [esp + 0x9c]
push 1
push ecx
call edi
mov edx, dword [esp + 0xa8]
push ebp
push edx
lea eax, [esp + 0xd0]
push 1
push eax
call edi
mov byte [esp + eax + 0xd8], 0
mov eax, dword [esp + 0xb4]
add esp, 0x20
cmp eax, esi
mov dword [esp + 0x18], esi
jg 0x41fff3
mov eax, dword [ebx]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x420120
mov ecx, dword [esp + 0x20]
call fcn.0041f8e0
mov byte [esp + 0x17], 1
push ebp
call dword [sym.imp.MSVCR71.dll_fclose]
mov esi, dword [ebx]
add esp, 4
cmp esi, ebx
je 0x41ff7f
mov edi, dword [esi + 8]
test edi, edi
mov dword [esp + 0x34], edi
je 0x41ff79
mov byte [esp + 0x4c4], 0
mov ecx, edi
call dword [0x44e720]
push edi
call sub.MFC71.DLL_operator_delete
add esp, 4
mov esi, dword [esi]
cmp esi, ebx
jne 0x41ff55
lea ecx, [esp + 0x24]
call fcn.0041a940
mov dword [esp + 0x4c4], 0xffffffff
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esp + 0x2c], ebx
je 0x41ffb9
mov edi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x41ffa8
push esi
call sub.MFC71.DLL_operator_delete
mov al, byte [esp + 0x1b]
add esp, 4
mov dword [esp + 0x28], ebx
pop edi
mov ecx, dword [esp + 0x4b8]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4ac]
pop ebx
call fcn.00443e74
add esp, 0x4b8
ret 4
xor esi, esi
push 0x28
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4c4], 1
cmp eax, esi
je 0x420016
mov ecx, eax
call fcn.0041d6b0
mov esi, eax
mov byte [esp + 0x4c4], 0
mov dword [esp + 0x10], esi
mov byte [esp + 0x4c4], 2
push ebp
push 0xc
lea ecx, [esi + 0x1c]
push 1
push ecx
call edi
add esp, 0x10
cmp eax, 0xc
jne 0x4200d4
mov edx, dword [esi + 0x24]
push edx
mov ecx, esi
call dword [0x44e6f4]
cmp dword [esi + 0x18], 0x10
jb 0x420058
mov eax, dword [esi + 4]
jmp 0x42005b
lea eax, [esi + 4]
mov ecx, dword [esi + 0x24]
push ebp
push ecx
push 1
push eax
call edi
mov ecx, dword [esi + 0x24]
add esp, 0x10
cmp eax, ecx
jne 0x420106
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x420088
push 0
lea ecx, [esp + 0x14]
call fcn.0041dcc0
jmp 0x4200a6
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], esi
call fcn.0041e5c0
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x4c4], 0
lea ecx, [esp + 0x10]
call fcn.0041dca0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x94]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x41fff1
jmp 0x41ff29
mov byte [esp + 0x4c4], 0
test esi, esi
mov dword [esp + 0x1c], esi
je 0x41ff45
mov byte [esp + 0x4c4], 0
mov ecx, esi
call dword [0x44e720]
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
jmp 0x41ff45
mov byte [esp + 0x4c4], 0
lea ecx, [esp + 0x10]
call fcn.0041dca0
jmp 0x41ff45
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x4c4], 4
mov eax, dword [esi + 0x20]
test eax, eax
jle 0x420193
push ebx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esi + 0x20]
push eax
call sub.MFC71.DLL_operator_new_1
mov edi, eax
add esp, 8
test edi, edi
je 0x420159
push ebx
call sub.MFC71.DLL_operator_delete
add esp, 4
mov ecx, dword [esi + 0x1c]
push 0
push ecx
push ebp
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x420434
mov edx, dword [esi + 0x20]
push ebp
push edx
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fread]
mov ecx, dword [esi + 0x20]
add esp, 0x10
cmp eax, ecx
jne 0x420434
mov ebx, edi
mov eax, dword [esi + 0x14]
push 4
add eax, 0xfffffffc
push eax
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call dword [0x44e710]
mov byte [esp + 0x4c4], 5
mov eax, dword [esi + 0x18]
mov ebp, 0x10
cmp eax, ebp
jb 0x4201c5
mov eax, dword [esi + 4]
jmp 0x4201c8
lea eax, [esi + 4]
mov ecx, dword [str.Skin.xml]
mov edi, dword [sym.imp.MSVCR71.dll__stricmp]
push ecx
push eax
call edi
add esp, 8
test eax, eax
jne 0x420256
mov esi, dword [esi + 0x20]
test esi, esi
jle 0x4201f6
mov ecx, dword [esp + 0x20]
add esi, ebx
push esi
push ebx
add ecx, 0x74
call fcn.0041f810
test ebx, ebx
je 0x420203
push ebx
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
mov dword [esp + 0x18], esi
mov byte [esp + 0x4c4], 4
lea ecx, [esp + 0x9c]
call dword [0x44e720]
mov byte [esp + 0x4c4], 0
push ebx
call sub.MFC71.DLL_operator_delete
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
add esp, 4
cmp esi, eax
jne 0x42011c
mov ebx, eax
jmp 0x41ff37
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x42026d
lea eax, [esp + 0xa0]
push str..bmp
push eax
call edi
add esp, 8
test eax, eax
je 0x420401
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x420297
lea eax, [esp + 0xa0]
push str..png
push eax
call edi
add esp, 8
test eax, eax
je 0x420401
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x4202c1
lea eax, [esp + 0xa0]
push 0x452638
push eax
call edi
add esp, 8
test eax, eax
je 0x420401
cmp dword [esi + 0x18], ebp
jb 0x4202de
mov eax, dword [esi + 4]
jmp 0x4202e1
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x3c]
call dword [0x44e6e0]
mov byte [esp + 0x4c4], 6
mov ebp, dword [esp + 0x20]
mov edi, dword [ebp + 0xc]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
add ebp, 4
push eax
mov ecx, ebp
call fcn.00428240
cmp dword [esp + 0x1c], edi
setne bl
mov byte [esp + 0x4c4], 5
lea ecx, [esp + 0x38]
call dword [0x44e720]
test bl, bl
je 0x420369
cmp dword [esi + 0x18], 0x10
jb 0x420337
mov eax, dword [esi + 4]
jmp 0x42033a
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x74]
call dword [0x44e6e0]
mov byte [esp + 0x4c4], 7
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebp
call fcn.0041fa80
mov edi, dword [eax]
mov byte [esp + 0x4c4], 5
lea ecx, [esp + 0x70]
jmp 0x4203d6
push 0xc
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c4], 8
xor edi, edi
cmp eax, edi
je 0x420393
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax], 0x4525d8
mov edi, eax
mov byte [esp + 0x4c4], 5
cmp dword [esi + 0x18], 0x10
jb 0x4203a6
mov eax, dword [esi + 4]
jmp 0x4203a9
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x58]
call dword [0x44e6e0]
mov byte [esp + 0x4c4], 9
lea edx, [esp + 0x54]
push edx
mov ecx, ebp
call fcn.0041fa80
mov dword [eax], edi
mov byte [esp + 0x4c4], 5
lea ecx, [esp + 0x54]
call dword [0x44e720]
mov esi, dword [esi + 0x20]
test esi, esi
jle 0x42020b
mov eax, dword [esp + 0x10]
push esi
push eax
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.0041d670
jmp 0x42020b
cmp dword [esi + 0x18], ebp
jb 0x42041d
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push eax
call fcn.0041fc90
jmp 0x42020f
mov ecx, dword [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esi + 4]
push ebx
push eax
call fcn.0041fc90
jmp 0x42020f
mov byte [esp + 0x4c4], 0
push edi
call sub.MFC71.DLL_operator_delete
mov ebx, dword [esp + 0x2c]
add esp, 4
jmp 0x41ff45