Function at 0x40c6b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e2e91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x573
call fcn.004d7a36
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
push 0
push 0
mov eax, dword [edi + 0x1c]
push 0x402
push eax
mov dword [esp + 0x24], edi
call ebp
mov ebx, dword [esp + 0x434]
mov ecx, dword [edi + 0x1c]
push ebx
push 0
push 0x406
push ecx
call ebp
xor ebp, ebp
mov ecx, esi
mov dword [esp + 0x18], ebp
call fcn.0040bff0
test al, al
jne 0x40c9a3
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ecx
call dword [0x52c480]
mov edx, dword [0x52a0ac]
test eax, eax
je 0x40c9b7
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x42c], 1
test eax, eax
je 0x40c79c
mov ecx, dword [esp + 0x438]
push 0
add ebp, eax
mov edx, dword [ecx]
add edx, eax
mov dword [ecx], edx
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esi + 0x68]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40ca1b
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x40ca1b
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0x90]
mov edx, eax
sub edx, ecx
mov eax, 0x10624dd3
mul edx
mov edi, edx
shr edi, 6
jne 0x40c7bf
mov edi, 1
cmp edi, dword [esp + 0x18]
jbe 0x40c974
test ebx, ebx
mov dword [esp + 0x18], edi
je 0x40c86f
mov eax, dword [esp + 0x14]
push 0
push ebp
push 0x402
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp + ebp*4]
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div ebx
mov edx, ebp
shr ebx, 0xa
shr edx, 0xa
push eax
push ebx
push edx
lea eax, [esp + 0x1c]
push str._d_KB_of__d_KB___d___
push eax
call fcn.004d2ea8
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ecx
push 0x577
mov ecx, esi
call fcn.004d7a8e
mov edx, dword [esp + 0x43c]
mov ebx, dword [edx]
cmp ebx, 0xffffffff
je 0x40c89a
mov eax, dword [esp + 0x438]
xor edx, edx
mov ecx, dword [eax]
lea eax, [ecx + ecx*4]
shr ecx, 0xa
lea eax, [eax + eax*4]
shl eax, 2
div ebx
shr ebx, 0xa
push eax
push ebx
push ecx
lea ecx, [esp + 0x1c]
push str._d_KB_of__d_KB___d___
push ecx
call fcn.004d2ea8
mov ebx, dword [esp + 0x448]
add esp, 0x14
jmp 0x40c8c0
mov edx, ebp
lea eax, [esp + 0x10]
shr edx, 0xa
push edx
push str._d_KB
push eax
call fcn.004d2ea8
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 0x577
mov ecx, esi
call fcn.004d7a8e
jmp 0x40c8a1
mov ebx, dword [esp + 0x434]
mov edx, dword [esp + 0x438]
lea ecx, [esp + 0x10]
mov eax, dword [edx]
shr eax, 0xa
push eax
push str._d_KB
push ecx
call fcn.004d2ea8
add esp, 0xc
mov eax, edi
xor edx, edx
mov ecx, 0x3c
div ecx
mov eax, 0x88888889
push edx
mul edi
mov eax, edx
xor edx, edx
shr eax, 5
div ecx
mov eax, 0x91a2b3c5
push edx
mul edi
shr edx, 0xb
push edx
lea edx, [esp + 0x1c]
push str._d:_02d:_02d
push edx
call fcn.004d2ea8
add esp, 0x14
test ebx, ebx
je 0x40c974
mov eax, dword [esp + 0x43c]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40c974
mov ecx, dword [esp + 0x438]
mov ecx, dword [ecx]
test ecx, ecx
jbe 0x40c974
mul edi
push 0
push ecx
push edx
push eax
call fcn.004c0bb0
mov ecx, eax
xor edx, edx
sub ecx, edi
mov edi, 0x3c
mov eax, ecx
div edi
mov eax, 0x88888889
push edx
mul ecx
mov eax, edx
xor edx, edx
shr eax, 5
div edi
mov eax, 0x91a2b3c5
push edx
mul ecx
shr edx, 0xb
push edx
lea edx, [esp + 0x1c]
push str._d:_02d:_02d
push edx
call fcn.004d2ea8
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, esi
push eax
push 0x574
call fcn.004d7a8e
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004d8520
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x40caa8
mov ecx, esi
call fcn.0040bff0
test al, al
je 0x40c720
mov ecx, dword [esp + 0x440]
xor al, al
mov dword [ecx], 0
jmp 0x40caf9
mov dword [esp + 0x14], edx
push str.wininet.dll
mov dword [esp + 0x430], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0040c020
mov ecx, dword [esp + 0x14]
push ecx
push 0x50f1c0
lea ecx, [esi + 0x7c]
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
mov edx, dword [esp + 0x440]
lea ecx, [esp + 0x14]
mov dword [esp + 0x42c], 0xffffffff
mov dword [edx], eax
call fcn.004d8520
xor al, al
jmp 0x40caf9
mov eax, dword [0x52a0ac]
mov dword [esp + 0x18], eax
push 0
mov byte [esp + 0x430], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040c020
mov edx, dword [esp + 0x444]
lea edi, [esi + 0x7c]
add edx, 0x104
mov ecx, edi
push edx
push 0x50f1c0
call fcn.004d2835
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
push 0x50f6a8
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
mov ecx, dword [esp + 0x440]
mov byte [esp + 0x42c], 1
mov dword [ecx], eax
lea ecx, [esp + 0x18]
call fcn.004d8520
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004d8520
xor al, al
jmp 0x40caf9
mov edx, dword [esi + 0x8c]
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov dword [edx + 0x30c], ebp
mov eax, dword [edi + 0x1c]
push 0
push 0x406
push eax
call ebx
mov ecx, dword [edi + 0x1c]
push 0
push ebp
push 0x402
push ecx
call ebx
mov ecx, esi
call fcn.0040c200
mov edx, dword [esp + 0x43c]
mov dword [edx], eax
mov eax, dword [esp + 0x440]
mov dword [eax], 0
mov al, 1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret 0x14