Function at 0x40dc30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bd111
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 0x4030
call fcn.004b1cc4
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.0040d570
test al, al
jne 0x40df23
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ecx
call dword [0x4f7900]
mov edx, dword [0x4f4df4]
test eax, eax
je 0x40df37
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x42c], 1
test eax, eax
je 0x40dd1c
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 0x40df9b
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x40df9b
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 0x40dd3f
mov edi, 1
cmp edi, dword [esp + 0x18]
jbe 0x40def4
test ebx, ebx
mov dword [esp + 0x18], edi
je 0x40ddef
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.004ad14b
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ecx
push 0x4034
mov ecx, esi
call fcn.004b1d1c
mov edx, dword [esp + 0x43c]
mov ebx, dword [edx]
cmp ebx, 0xffffffff
je 0x40de1a
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.004ad14b
mov ebx, dword [esp + 0x448]
add esp, 0x14
jmp 0x40de40
mov edx, ebp
lea eax, [esp + 0x10]
shr edx, 0xa
push edx
push str._d_KB
push eax
call fcn.004ad14b
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 0x4034
mov ecx, esi
call fcn.004b1d1c
jmp 0x40de21
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.004ad14b
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.004ad14b
add esp, 0x14
test ebx, ebx
je 0x40def4
mov eax, dword [esp + 0x43c]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40def4
mov ecx, dword [esp + 0x438]
mov ecx, dword [ecx]
test ecx, ecx
jbe 0x40def4
mul edi
push 0
push ecx
push edx
push eax
call fcn.00499fc0
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.004ad14b
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, esi
push eax
push 0x4031
call fcn.004b1d1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004b27ab
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x40e028
mov ecx, esi
call fcn.0040d570
test al, al
je 0x40dca0
mov ecx, dword [esp + 0x440]
xor al, al
mov dword [ecx], 0
jmp 0x40e079
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.0040d5a0
mov ecx, dword [esp + 0x14]
push ecx
push 0x4e91d0
lea ecx, [esi + 0x7c]
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
mov edx, dword [esp + 0x440]
lea ecx, [esp + 0x14]
mov dword [esp + 0x42c], 0xffffffff
mov dword [edx], eax
call fcn.004b27ab
xor al, al
jmp 0x40e079
mov eax, dword [0x4f4df4]
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.0040d5a0
mov edx, dword [esp + 0x444]
lea edi, [esi + 0x7c]
add edx, 0x104
mov ecx, edi
push edx
push 0x4e91d0
call fcn.004acad8
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
push 0x4e9e50
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
mov ecx, dword [esp + 0x440]
mov byte [esp + 0x42c], 1
mov dword [ecx], eax
lea ecx, [esp + 0x18]
call fcn.004b27ab
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004b27ab
xor al, al
jmp 0x40e079
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.0040d780
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