Function at 0x40aed1
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4b06a8
call fcn.0048a7d0
sub esp, 0x420
push ebx
push esi
push edi
mov esi, ecx
push 0x4030
call fcn.004a543b
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.0040a962
test al, al
jne 0x40b14b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x42c]
push 0x400
push eax
push dword [esi + 0x60]
call dword [0x4eebb8]
test eax, eax
mov eax, dword [0x4ea054]
je 0x40b152
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
test eax, eax
je 0x40af99
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 0x40b195
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jne 0x40b195
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 0x40afbf
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jbe 0x40b130
cmp dword [ebp + 8], 0
mov dword [ebp - 0x20], eax
je 0x40b00d
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.004a05b4
add esp, 0x14
jmp 0x40b025
mov eax, dword [ebp - 0x14]
shr eax, 0xa
push eax
lea eax, [ebp - 0x10]
push str._d_KB
push eax
call fcn.004a05b4
add esp, 0xc
push dword [ebp - 0x10]
mov ecx, esi
push 0x4034
call fcn.004a5493
cmp dword [ebp + 8], 0
je 0x40b072
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b072
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.004a05b4
add esp, 0x14
jmp 0x40b08c
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.004a05b4
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.004a05b4
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x40b130
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40b130
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
jbe 0x40b130
mul dword [ebp - 0x18]
push 0
push ecx
push edx
push eax
call fcn.0048c970
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.004a05b4
add esp, 0x14
mov ecx, esi
push dword [ebp - 0x10]
push 0x4031
call fcn.004a5493
mov ebx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a5f26
cmp dword [ebp - 0x1c], 0
jbe 0x40b204
jmp 0x40af20
xor al, al
jmp 0x40b23d
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.0040a986
push dword [ebp + 8]
lea ecx, [esi + 0x7c]
push 0x4dd1d0
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov ecx, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
lea ecx, [ebp + 8]
jmp 0x40b1fb
mov eax, dword [0x4ea054]
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.0040a986
mov eax, dword [ebp + 0x18]
lea edi, [esi + 0x7c]
add eax, 0x104
mov ecx, edi
push eax
push 0x4dd1d0
call fcn.0049fefc
push dword [ebp + 0xc]
mov ecx, edi
push 0x4dde50
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 1
mov dword [ecx], eax
lea ecx, [ebp + 0xc]
call fcn.004a5f26
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a5f26
xor al, al
jmp 0x40b243
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.0040aaff
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