Function at 0x40b34c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4d9cac
call fcn.004b36d0
sub esp, 0x420
push ebx
push esi
push edi
mov esi, ecx
push 0x4030
call fcn.004ce982
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.0040addd
test al, al
jne 0x40b5c6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x42c]
push 0x400
push eax
push dword [esi + 0x60]
call dword [0x523060]
test eax, eax
mov eax, dword [0x52041c]
je 0x40b5cd
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
test eax, eax
je 0x40b414
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 0x40b610
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jne 0x40b610
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 0x40b43a
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jbe 0x40b5ab
cmp dword [ebp + 8], 0
mov dword [ebp - 0x20], eax
je 0x40b488
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.004c9c0f
add esp, 0x14
jmp 0x40b4a0
mov eax, dword [ebp - 0x14]
shr eax, 0xa
push eax
lea eax, [ebp - 0x10]
push str._d_KB
push eax
call fcn.004c9c0f
add esp, 0xc
push dword [ebp - 0x10]
mov ecx, esi
push 0x4034
call fcn.004ce9da
cmp dword [ebp + 8], 0
je 0x40b4ed
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b4ed
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.004c9c0f
add esp, 0x14
jmp 0x40b507
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.004c9c0f
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.004c9c0f
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x40b5ab
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40b5ab
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
jbe 0x40b5ab
mul dword [ebp - 0x18]
push 0
push ecx
push edx
push eax
call fcn.004b5720
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.004c9c0f
add esp, 0x14
mov ecx, esi
push dword [ebp - 0x10]
push 0x4031
call fcn.004ce9da
mov ebx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
cmp dword [ebp - 0x1c], 0
jbe 0x40b67f
jmp 0x40b39b
xor al, al
jmp 0x40b6b8
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.0040ae01
push dword [ebp + 8]
lea ecx, [esi + 0x7c]
push 0x5061e0
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov ecx, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
lea ecx, [ebp + 8]
jmp 0x40b676
mov eax, dword [0x52041c]
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.0040ae01
mov eax, dword [ebp + 0x18]
lea edi, [esi + 0x7c]
add eax, 0x104
mov ecx, edi
push eax
push 0x5061e0
call fcn.004c959c
push dword [ebp + 0xc]
mov ecx, edi
push 0x506e60
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 1
mov dword [ecx], eax
lea ecx, [ebp + 0xc]
call fcn.004cf46d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
xor al, al
jmp 0x40b6be
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.0040af7a
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