Function at 0x40b3f2
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4e2c38
call fcn.004bb144
sub esp, 0x420
push ebx
push esi
push edi
mov esi, ecx
push 0x4030
call fcn.004d78dd
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ebx, eax
push 0
push 0x402
mov dword [ebp - 0x28], ebx
push dword [ebx + 0x1c]
call edi
push dword [ebp + 8]
push 0
push 0x406
push dword [ebx + 0x1c]
call edi
and dword [ebp - 0x14], 0
and dword [ebp - 0x20], 0
mov ecx, esi
call fcn.0040ae83
test al, al
jne 0x40b66c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x42c]
push 0x400
push eax
push dword [esi + 0x60]
call dword [0x531f60]
test eax, eax
mov eax, dword [0x52d2c4]
je 0x40b673
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
test eax, eax
je 0x40b4ba
mov ecx, dword [ebp + 0xc]
add dword [ebp - 0x14], eax
push 0
add dword [ecx], eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x42c]
push eax
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40b6b6
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jne 0x40b6b6
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esi + 0x90]
xor edx, edx
mov ecx, 0x3e8
div ecx
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x40b4e0
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jbe 0x40b651
cmp dword [ebp + 8], 0
mov dword [ebp - 0x20], eax
je 0x40b52e
push 0
push dword [ebp - 0x14]
push 0x402
push dword [ebx + 0x1c]
call edi
mov eax, dword [ebp - 0x14]
xor edx, edx
imul eax, eax, 0x64
div dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x14]
shr eax, 0xa
push eax
lea eax, [ebp - 0x10]
push str._d_KB_of__d_KB___d___
push eax
call fcn.004d2858
add esp, 0x14
jmp 0x40b546
mov eax, dword [ebp - 0x14]
shr eax, 0xa
push eax
lea eax, [ebp - 0x10]
push str._d_KB
push eax
call fcn.004d2858
add esp, 0xc
push dword [ebp - 0x10]
mov ecx, esi
push 0x4034
call fcn.004d7935
cmp dword [ebp + 8], 0
je 0x40b593
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b593
mov eax, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
imul eax, eax, 0x64
div ecx
shr ecx, 0xa
push eax
mov eax, dword [ebp - 0x24]
shr eax, 0xa
push ecx
push eax
lea eax, [ebp - 0x10]
push str._d_KB_of__d_KB___d___
push eax
call fcn.004d2858
add esp, 0x14
jmp 0x40b5ad
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
shr eax, 0xa
push eax
lea eax, [ebp - 0x10]
push str._d_KB
push eax
call fcn.004d2858
add esp, 0xc
mov eax, dword [ebp - 0x18]
push 0x3c
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp - 0x18]
push edx
xor edx, edx
div ecx
xor edx, edx
div ecx
mov eax, dword [ebp - 0x18]
mov ecx, 0xe10
push edx
xor edx, edx
div ecx
push eax
lea eax, [ebp - 0x10]
push str._d:_02d:_02d
push eax
call fcn.004d2858
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x40b651
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40b651
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
jbe 0x40b651
mul dword [ebp - 0x18]
push 0
push ecx
push edx
push eax
call fcn.004bd2f0
mov ecx, eax
push 0x3c
sub ecx, dword [ebp - 0x18]
xor edx, edx
pop ebx
mov eax, ecx
div ebx
mov eax, ecx
push edx
xor edx, edx
div ebx
xor edx, edx
div ebx
mov eax, ecx
mov ecx, 0xe10
push edx
xor edx, edx
div ecx
push eax
lea eax, [ebp - 0x10]
push str._d:_02d:_02d
push eax
call fcn.004d2858
add esp, 0x14
mov ecx, esi
push dword [ebp - 0x10]
push 0x4031
call fcn.004d7935
mov ebx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d83c8
cmp dword [ebp - 0x1c], 0
jbe 0x40b725
jmp 0x40b441
xor al, al
jmp 0x40b75e
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040aea7
push dword [ebp + 8]
lea ecx, [esi + 0x7c]
push 0x5111e0
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov ecx, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
lea ecx, [ebp + 8]
jmp 0x40b71c
mov eax, dword [0x52d2c4]
mov dword [ebp + 0xc], eax
push 0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0040aea7
mov eax, dword [ebp + 0x18]
lea edi, [esi + 0x7c]
add eax, 0x104
mov ecx, edi
push eax
push 0x5111e0
call fcn.004d21a0
push dword [ebp + 0xc]
mov ecx, edi
push 0x511e60
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 1
mov dword [ecx], eax
lea ecx, [ebp + 0xc]
call fcn.004d83c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d83c8
xor al, al
jmp 0x40b764
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x8c]
push eax
push 0
push 0x406
mov dword [ecx + 0x30c], eax
push dword [ebx + 0x1c]
call edi
push 0
push dword [ebp - 0x14]
push 0x402
push dword [ebx + 0x1c]
call edi
mov ecx, esi
call fcn.0040b020
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov al, 1
mov ecx, dword [ebp + 0x14]
and dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14