Function at 0x4240c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431d4b
push eax
mov eax, 0x844c
mov dword fs:[0], esp
call fcn.00431220
push esi
mov esi, dword [esp + 0x8464]
push 0x14
push str.c:windows
push esi
call dword [sym.imp.MSVCRT.dll__memicmp]
add esp, 0xc
test eax, eax
jne 0x424112
pop esi
mov ecx, dword [esp + 0x844c]
mov dword fs:[0], ecx
add esp, 0x8458
ret
push ebx
push edi
push 0xfa0
lea eax, [esp + 0x16f4]
xor edi, edi
push esi
push eax
mov dword [esp + 0x846c], edi
mov dword [esp + 0x3640], edi
mov dword [esp + 0x363c], edi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebx
add esp, 0x10
cmp word [esp + eax*2 + 0x16ee], 0x5c
jne 0x424164
push esi
call ebx
add esp, 4
mov word [esp + eax*2 + 0x16ee], di
lea ecx, [esp + 0x16f0]
push ecx
call fcn.00423e30
add esp, 4
test eax, eax
je 0x4243cd
push ebp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x754]
push 0xf9f
lea eax, [esp + 0x16f8]
push edx
push eax
call fcn.004109e0
mov ecx, dword [esp + 0x3644]
add esp, 0xc
xor ebp, ebp
cmp ecx, edi
mov dword [esp + 0x1c], edi
jle 0x424369
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x3634]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea esi, [edx + ecx]
push eax
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
push ecx
push edx
call fcn.00411080
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x21c]
lea eax, [esp + 0x20]
push eax
push ecx
push edx
call fcn.00411080
mov ecx, dword [esi + 0x228]
mov edx, dword [esi + 0x224]
lea eax, [esp + 0x38]
push eax
push ecx
push edx
call fcn.00411080
lea eax, [esp + 0x6c]
push 0x30b
push eax
push esi
call fcn.004109e0
mov eax, dword [esi + 0x208]
add esp, 0x30
cmp eax, edi
jne 0x4242cb
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x754]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x48]
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x3644]
push str._s_s
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x16f4]
lea edx, [esp + 0x45dc]
push esi
push ecx
push 0x438118
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x210]
push edx
mov edx, dword [esi + 0x20c]
push eax
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x76c]
push eax
push ecx
lea edx, [esp + 0x374]
push str._s_t_s_t1_t_I64d_t_u_t_s_t_u_t_u_n
push edx
call ebx
add esp, 0x28
mov esi, eax
xor edi, edi
jmp 0x424309
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0x210]
push ecx
mov ecx, dword [esi + 0x20c]
push edx
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x768]
push edx
push eax
lea ecx, [esp + 0x370]
push str._s_t_s_t0_t_I64d_t_u_t_t_u_t_u_n
push ecx
call ebx
add esp, 0x24
mov esi, eax
lea edx, [esp + 0x354]
push esi
push edx
call fcn.00411030
mov eax, dword [esp + 0x8474]
lea ecx, [esp + 0x35c]
push eax
push esi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
inc ebp
cmp ebp, 0x14
jle 0x424343
push 1
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3638]
inc eax
add esi, 0x22c
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
jl 0x4241c1
xor ebx, ebx
cmp ecx, edi
pop ebp
jle 0x4243cd
xor esi, esi
mov edx, dword [esp + 0x3630]
lea eax, [esi + edx]
mov edx, dword [esi + edx + 0x208]
cmp edx, edi
je 0x4243c2
push eax
lea eax, [esp + 0x16f4]
push eax
lea ecx, [esp + 0x6520]
push 0x438118
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esp + 0x8478]
lea edx, [esp + 0x6528]
push edx
push eax
call fcn.004240c0
mov ecx, dword [esp + 0x364c]
add esp, 0x18
inc ebx
add esi, 0x22c
cmp ebx, ecx
jl 0x424372
mov eax, dword [esp + 0x3630]
cmp eax, edi
pop edi
pop ebx
je 0x4243e3
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x8450]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x8458
ret