Function at 0x415040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d6e98
push eax
mov eax, 0x1250
mov dword fs:[0], esp
call fcn.004d3780
mov eax, 0x4ffed8
push ebx
push esi
push edi
test eax, eax
je 0x415079
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x41507b
xor esi, esi
push esi
mov ecx, 0x5003ac
call fcn.004076f0
test eax, eax
je 0x4150d0
mov ecx, dword [0x5003ac]
inc esi
push esi
push 0x4ffed8
push ecx
call fcn.00416750
add esp, 0xc
mov ecx, 0x5003ac
call fcn.00407680
mov edx, dword [0x5003ac]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call ebx
mov ecx, dword [0x5003ac]
mov dword [ecx - 8], eax
mov edx, dword [0x5003ac]
mov word [edx + eax*2], 0
jmp 0x4150d6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x41548a
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41548a
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x125a]
mov word [ebp - 0x125c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
push 0x823
stosw word es:[edi], ax
lea eax, [ebp - 0x125c]
push eax
push ecx
push edx
push esi
call fcn.004accf0
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push str.SEFormFN:
call esi
push eax
lea edx, [ebp - 0x125c]
push str.SEFormFN:
push edx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0x24
test eax, eax
jne 0x4152dc
push str.SEFormFN:
call esi
lea esi, [ebp + eax*2 - 0x125c]
mov eax, dword [0x4eb4c0]
mov dword [ebp + 8], eax
mov edx, dword [0x6dcf84]
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x212]
mov dword [ebp - 4], eax
mov word [ebp - 0x214], ax
rep stosd dword es:[edi], eax
push str._formdata_
lea ecx, [ebp - 0x214]
push 0x103
push ecx
push edx
stosw word es:[edi], ax
call fcn.004a7ac0
lea eax, [ebp - 0x214]
add esp, 0x14
test eax, eax
je 0x4151ac
lea ecx, [ebp - 0x214]
push ecx
call ebx
lea edx, [ebp - 0x214]
lea ecx, [ebp + 8]
push edx
push eax
call fcn.00407780
test esi, esi
jne 0x4151c4
xor eax, eax
jmp 0x4151c7
push esi
call ebx
push esi
push eax
lea ecx, [ebp + 8]
call fcn.00407810
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004a7ab0
add esp, 8
test eax, eax
je 0x4152a6
mov ecx, dword [ebp + 8]
push 0x4ec1ec
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4152a6
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
lea edx, [edi + 1]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
push ebx
mov esi, eax
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x30
mov byte [esi + edi], 0
test esi, esi
je 0x41524d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x41524f
xor edi, edi
mov eax, dword [0x5003ac]
cmp dword [eax - 0xc], 1
jg 0x41525f
cmp edi, dword [eax - 4]
jle 0x41527d
mov ecx, 0x5003ac
call fcn.00407610
push edi
mov ecx, 0x5003ac
call fcn.00407580
test eax, eax
je 0x415295
mov eax, dword [0x5003ac]
inc edi
push edi
push esi
push eax
call fcn.00416750
add esp, 0xc
mov ecx, 0x5003ac
push 0xffffffffffffffff
call fcn.004107f0
push esi
call dword [sym.imp.MSVCRT.dll_free]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov eax, dword [ebp + 8]
mov edx, dword [0x4eb24c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415338
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415338
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
jmp 0x415338
lea eax, [ebp - 0x125c]
test eax, eax
jne 0x4152ea
xor ebx, ebx
jmp 0x4152f5
lea ecx, [ebp - 0x125c]
push ecx
call ebx
mov ebx, eax
push ebx
mov ecx, 0x5003ac
call fcn.004076f0
test eax, eax
je 0x415338
mov edi, dword [0x5003ac]
lea eax, [ebx + ebx]
mov ecx, eax
lea esi, [ebp - 0x125c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x5003ac]
mov dword [ecx - 8], ebx
mov edx, dword [0x5003ac]
mov word [eax + edx], 0
mov eax, dword [0x5003ac]
mov edi, dword [eax - 8]
inc edi
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
je 0x41548a
mov eax, dword [0x5003ac]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x415378
xor edi, edi
jmp 0x4153aa
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004d3780
mov eax, dword [ebp + 0xc]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push esi
call fcn.004aa1d0
push 1
push 9
push str.THEWORLD
push eax
push esi
push esi
call fcn.004a1670
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x5003ac]
mov edi, eax
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, 1
jg 0x4153e4
cmp edi, dword [ecx - 4]
jle 0x41542f
mov edx, dword [0x4eb24c]
add ecx, 0xfffffff4
cmp ecx, edx
je 0x41541a
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41540e
mov ecx, dword [0x5003ac]
add ecx, 0xfffffff4
push ecx
call fcn.004d3765
add esp, 4
mov edx, dword [0x4eb4c0]
mov dword [0x5003ac], edx
push edi
mov ecx, 0x5003ac
call fcn.00407580
test eax, eax
je 0x415481
mov ecx, dword [0x5003ac]
lea eax, [edi + 1]
mov edi, ecx
test eax, eax
jne 0x41543c
test edi, edi
jne 0x415456
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x415456
mov word [edi + eax*2 - 2], 0
mov ecx, 0x5003ac
call fcn.00407680
mov eax, dword [0x5003ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x5003ac]
mov dword [ecx - 8], eax
mov edx, dword [0x5003ac]
mov word [edx + eax*2], 0
push esi
call fcn.004d3765
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x1268]
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret