Function at 0x40b363
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4dfa9c
call fcn.004b8e80
sub esp, 0x420
push ebx
push esi
push edi
mov esi, ecx
push 0x4030
call fcn.004d46b5
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.0040adf4
test al, al
jne 0x40b5dd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x42c]
push 0x400
push eax
push dword [esi + 0x60]
call dword [0x52bfa0]
test eax, eax
mov eax, dword [0x52933c]
je 0x40b5e4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
test eax, eax
je 0x40b42b
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 0x40b627
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jne 0x40b627
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 0x40b451
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jbe 0x40b5c2
cmp dword [ebp + 8], 0
mov dword [ebp - 0x20], eax
je 0x40b49f
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.004cf648
add esp, 0x14
jmp 0x40b4b7
mov eax, dword [ebp - 0x14]
shr eax, 0xa
push eax
lea eax, [ebp - 0x10]
push str._d_KB
push eax
call fcn.004cf648
add esp, 0xc
push dword [ebp - 0x10]
mov ecx, esi
push 0x4034
call fcn.004d470d
cmp dword [ebp + 8], 0
je 0x40b504
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b504
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.004cf648
add esp, 0x14
jmp 0x40b51e
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.004cf648
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.004cf648
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x40b5c2
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40b5c2
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
jbe 0x40b5c2
mul dword [ebp - 0x18]
push 0
push ecx
push edx
push eax
call fcn.004baed0
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.004cf648
add esp, 0x14
mov ecx, esi
push dword [ebp - 0x10]
push 0x4031
call fcn.004d470d
mov ebx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d519c
cmp dword [ebp - 0x1c], 0
jbe 0x40b696
jmp 0x40b3b2
xor al, al
jmp 0x40b6cf
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.0040ae18
push dword [ebp + 8]
lea ecx, [esi + 0x7c]
push 0x50e1e0
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov ecx, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
lea ecx, [ebp + 8]
jmp 0x40b68d
mov eax, dword [0x52933c]
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.0040ae18
mov eax, dword [ebp + 0x18]
lea edi, [esi + 0x7c]
add eax, 0x104
mov ecx, edi
push eax
push 0x50e1e0
call fcn.004cef90
push dword [ebp + 0xc]
mov ecx, edi
push 0x50ee60
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 1
mov dword [ecx], eax
lea ecx, [ebp + 0xc]
call fcn.004d519c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d519c
xor al, al
jmp 0x40b6d5
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.0040af91
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