Function at 0x4075db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov ecx, 0x46
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4075e9
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
push dword [ebp + 8]
call fcn.00401f26
add esp, 4
push 0x2e
push dword [ebp + 8]
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov dword [ebp - 4], eax
cmp eax, 0
je 0x407b9c
push 0x5c
push dword [ebp + 8]
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov dword [ebp - 0xc], eax
cmp eax, 0
je 0x407642
add dword [ebp - 0xc], 1
jmp 0x407648
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
push str..EMC
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x40768f
push str..EMM
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x40768f
push str..EMS
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
cmp eax, 0
jne 0x40778d
push str..EMC
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
cmp eax, 0
jne 0x4076c1
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 8]
call fcn.00406abc
add esp, 8
mov dword [ebp - 8], eax
mov edi, dword [ebp - 8]
mov dword [ebp - 0x118], edi
jmp 0x407733
cmp dword [0x50be38], 0
je 0x407703
push 0xffffffffffffffff
push 0
call dword [0x50be34]
push dword [ebp + 8]
call dword [0x50be28]
mov dword [ebp - 8], eax
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x14]
mov edi, dword [edi + 4]
shl edi, 4
shr edi, 4
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 8]
add edi, 8
mov dword [ebp - 0x118], edi
jmp 0x407733
push dword [ebp - 0xc]
push str.cannot_convert__s_neaconvert.dll_not_found__
lea edi, [ebp - 0x114]
push edi
call fcn.00491c0d
add esp, 0xc
push 0
push 0x5404c8
lea edi, [ebp - 0x114]
push edi
push dword [0x4aec44]
call sub.USER32.DLL_MessageBoxA
cmp dword [ebp - 8], 0
je 0x407b9c
push dword [ebp - 0x10]
push dword [ebp - 0x118]
push str.XFR_d__d_r_n
lea edi, [ebp - 0x114]
push edi
call fcn.00491c0d
add esp, 0x10
lea edi, [ebp - 0x114]
push edi
call fcn.00491d08
add esp, 4
push eax
lea edi, [ebp - 0x114]
push edi
call fcn.00406bea
add esp, 8
push 0x64
call sub.KERNEL32.dll_Sleep
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalFree
jmp 0x407b9c
push str..EUP
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
cmp eax, 0
jne 0x407932
push 0x540681
push dword [ebp + 8]
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [0x4b47bc], eax
cmp eax, 0
je 0x407b9c
push dword [0x4b47bc]
push 0x10
push 1
lea edi, [ebp - 0x114]
push edi
call sub.CRTDLL.DLL_fread
add esp, 0x10
push 5
push str.XUP
lea edi, [ebp - 0x114]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
jne 0x40787f
push 7
push 0x540c4b
lea edi, [ebp - 0x10f]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
je 0x40787f
push dword [0x4b47bc]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov dword [0x4b47bc], 0
mov byte [ebp - 0x108], 0
cmp byte [ebp - 0x109], 0x27
jne 0x407846
mov byte [ebp - 0x109], 0
lea edi, [ebp - 0x104]
mov dword [ebp - 0xc], edi
lea edi, [ebp - 0x10f]
push edi
push str.MCD_FFFF_nODI_1_nYDO1_nYPA12_Error:_wrong_Uploadfile___EA__s__nXXW200_nXFB_n
push dword [ebp - 0xc]
call fcn.00491c0d
add esp, 0xc
push dword [ebp - 0xc]
call fcn.00491d08
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0xc]
call fcn.00406bea
add esp, 8
cmp dword [0x4b47bc], 0
je 0x407b9c
push 2
push 0
push dword [0x4b47bc]
call sub.CRTDLL.DLL_fseek
add esp, 0xc
push dword [0x4b47bc]
call sub.CRTDLL.DLL_ftell
add esp, 4
mov dword [0x4aec4c], eax
push dword [0x4b47bc]
call sub.CRTDLL.DLL_rewind
add esp, 4
mov dword [0x4aecd4], 0
mov dword [0x4a1cb0], 0
mov dword [0x4ae670], 0
call sub.winmm.dll_timeGetTime
mov edi, eax
sub edi, 0xc8
mov dword [0x4a30c4], edi
push dword [0x4aec4c]
push 0
call sub.KERNEL32.dll_GlobalAlloc
mov dword [0x4a4c0c], eax
cmp eax, 0
jne 0x407b9c
push dword [0x4b47bc]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov dword [0x4b47bc], 0
mov dword [0x4aec4c], 0
jmp 0x407b9c
push str..EPG
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407975
push str..EPA
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407975
push str..EPI
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
cmp eax, 0
jne 0x40798a
push 0
push dword [ebp + 8]
call fcn.00406abc
add esp, 8
mov dword [ebp - 8], eax
jmp 0x407ab4
push str..BMP
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407a48
push str..TGA
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407a48
push str..PNG
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407a48
push str..APNG
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407a48
push str..JPG
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407a48
push str..GIF
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407a48
push str..G16
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
mov edi, eax
cmp edi, 0
je 0x407a48
push str..I16
push dword [ebp - 4]
call sub.CRTDLL.DLL__strcmpi
add esp, 8
cmp eax, 0
jne 0x407aa9
cmp dword [0x50be38], 0
je 0x407a77
push 0
push 0
call dword [0x50be34]
push 0xffffffffffffffff
push dword [0x4aed84]
call dword [0x50be2c]
push dword [ebp + 8]
call dword [0x50be28]
mov dword [ebp - 8], eax
jmp 0x407ab4
push dword [ebp - 0xc]
push str.cannot_convert__s_neaconvert.dll_not_found__
lea edi, [ebp - 0x114]
push edi
call fcn.00491c0d
add esp, 0xc
push 0
push 0x5404c8
lea edi, [ebp - 0x114]
push edi
push dword [0x4aec44]
call sub.USER32.DLL_MessageBoxA
jmp 0x407ab4
push dword [ebp + 8]
call fcn.00406f24
add esp, 4
cmp dword [ebp - 8], 0
je 0x407b9c
mov edi, dword [0x4aeda8]
sub edi, 0x3e8
cmp edi, 0x3e8
jge 0x407b94
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], edi
mov edi, dword [0x4aeda8]
sub edi, 0x3e8
mov esi, dword [ebp - 8]
mov dword [edi*4 + 0x4a3104], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov edi, dword [0x4aeda8]
add edi, 1
mov dword [0x4aeda8], edi
push edi
push dword [ebp - 8]
push 0x540418
lea edi, [ebp - 0x114]
push edi
call fcn.00491c0d
add esp, 0x18
lea edi, [ebp - 0x114]
push edi
call fcn.00491d08
add esp, 4
push eax
lea edi, [ebp - 0x114]
push edi
call fcn.00406bea
add esp, 8
mov dword [ebp - 0x10], 0x3c
jmp 0x407b4e
push 0x32
call sub.KERNEL32.dll_Sleep
mov edi, dword [ebp - 0x10]
mov esi, edi
sub esi, 1
mov dword [ebp - 0x10], esi
cmp edi, 0
jle 0x407b7a
mov edi, dword [0x4aeda8]
movsx edi, di
push edi
call fcn.004422bd
add esp, 4
mov dword [0x4a247c], eax
cmp eax, 0
je 0x407b47
cmp dword [0x4aec40], 0
jne 0x407b8d
mov dword [0x4a247c], 0
call fcn.00402e4c
jmp 0x407b9c
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalFree
pop edi
pop esi
leave
ret