Function at 0x414130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8408
push eax
mov eax, 0x1250
mov dword fs:[0], esp
call fcn.004d4ce0
mov eax, 0x500e04
push ebx
push esi
push edi
test eax, eax
je 0x414169
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x41416b
xor esi, esi
push esi
mov ecx, 0x500e90
call fcn.004066f0
test eax, eax
je 0x4141c0
mov ecx, dword [0x500e90]
inc esi
push esi
push 0x500e04
push ecx
call fcn.004157c0
add esp, 0xc
mov ecx, 0x500e90
call fcn.00406680
mov edx, dword [0x500e90]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call ebx
mov ecx, dword [0x500e90]
mov dword [ecx - 8], eax
mov edx, dword [0x500e90]
mov word [edx + eax*2], 0
jmp 0x4141c6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x41457a
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41457a
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.004ae040
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push str.TWFormFN:
call esi
push eax
lea edx, [ebp - 0x125c]
push str.TWFormFN:
push edx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0x24
test eax, eax
jne 0x4143cc
push str.TWFormFN:
call esi
lea esi, [ebp + eax*2 - 0x125c]
mov eax, dword [0x4ed0fc]
mov dword [ebp + 8], eax
mov edx, dword [0x73ff2c]
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.004a8e10
lea eax, [ebp - 0x214]
add esp, 0x14
test eax, eax
je 0x41429c
lea ecx, [ebp - 0x214]
push ecx
call ebx
lea edx, [ebp - 0x214]
lea ecx, [ebp + 8]
push edx
push eax
call fcn.00406780
test esi, esi
jne 0x4142b4
xor eax, eax
jmp 0x4142b7
push esi
call ebx
push esi
push eax
lea ecx, [ebp + 8]
call fcn.00406810
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004a8e00
add esp, 8
test eax, eax
je 0x414396
mov ecx, dword [ebp + 8]
push 0x4ede94
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x414396
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 0x41433d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x41433f
xor edi, edi
mov eax, dword [0x500e90]
cmp dword [eax - 0xc], 1
jg 0x41434f
cmp edi, dword [eax - 4]
jle 0x41436d
mov ecx, 0x500e90
call fcn.00406610
push edi
mov ecx, 0x500e90
call fcn.00406580
test eax, eax
je 0x414385
mov eax, dword [0x500e90]
inc edi
push edi
push esi
push eax
call fcn.004157c0
add esp, 0xc
mov ecx, 0x500e90
push 0xffffffffffffffff
call fcn.0040f9d0
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 [0x4ed100]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414428
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414428
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
jmp 0x414428
lea eax, [ebp - 0x125c]
test eax, eax
jne 0x4143da
xor ebx, ebx
jmp 0x4143e5
lea ecx, [ebp - 0x125c]
push ecx
call ebx
mov ebx, eax
push ebx
mov ecx, 0x500e90
call fcn.004066f0
test eax, eax
je 0x414428
mov edi, dword [0x500e90]
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 [0x500e90]
mov dword [ecx - 8], ebx
mov edx, dword [0x500e90]
mov word [eax + edx], 0
mov eax, dword [0x500e90]
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 0x41457a
mov eax, dword [0x500e90]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x414468
xor edi, edi
jmp 0x41449a
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.004d4ce0
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.004ab510
push 1
push 9
push str.THEWORLD
push eax
push esi
push esi
call fcn.004a2ae0
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x500e90]
mov edi, eax
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, 1
jg 0x4144d4
cmp edi, dword [ecx - 4]
jle 0x41451f
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
je 0x41450a
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4144fe
mov ecx, dword [0x500e90]
add ecx, 0xfffffff4
push ecx
call fcn.004d4cc1
add esp, 4
mov edx, dword [0x4ed0fc]
mov dword [0x500e90], edx
push edi
mov ecx, 0x500e90
call fcn.00406580
test eax, eax
je 0x414571
mov ecx, dword [0x500e90]
lea eax, [edi + 1]
mov edi, ecx
test eax, eax
jne 0x41452c
test edi, edi
jne 0x414546
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x414546
mov word [edi + eax*2 - 2], 0
mov ecx, 0x500e90
call fcn.00406680
mov eax, dword [0x500e90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x500e90]
mov dword [ecx - 8], eax
mov edx, dword [0x500e90]
mov word [edx + eax*2], 0
push esi
call fcn.004d4cc1
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