Function at 0x40c620
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x450a3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push ebx
mov ebx, dword [esp + 0x444]
push ebp
push esi
mov eax, dword [ebx + 0x188]
push edi
test eax, eax
mov ebp, ecx
mov dword [esp + 0x14], 0
je 0x40c712
mov edi, dword [ebx + 0x1f8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40c6a8
cmp byte [esp + ecx + 0x2b], 0x5c
je 0x40c6a8
mov byte [esp + ecx + 0x2c], 0x5c
mov byte [esp + ecx + 0x2d], 0
mov edi, str.Temp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x46c8c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40c722
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x450]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call fcn.0041e700
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], 0
je 0x40c7c6
push str..htm
push esi
call fcn.00423bd0
add esp, 8
test eax, eax
je 0x40c7be
push str..html
push esi
call fcn.00423bd0
add esp, 8
test eax, eax
jne 0x40c7c6
mov dword [esp + 0x10], 1
push 0
push 0
push 2
push 0
push 0
lea edx, [esp + 0x40]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ca5f
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x40c826
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x234]
push eax
push ecx
mov ecx, ebx
call fcn.004130a0
mov ecx, dword [ebx + 0x1a0]
push 0
push 0
lea eax, [esp + 0x23c]
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 0xc]
jmp 0x40c836
mov ecx, dword [esp + 0x44c]
push esi
push ecx
mov ecx, ebx
call fcn.00413d40
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40c8dc
mov edi, 0x46df8c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x144]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x234]
push ecx
push str._img_src___s__
push edx
mov esi, eax
call fcn.0041e88a
add esp, 0xc
lea eax, [esp + 0x28]
lea edi, [esp + 0x234]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x240]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
lea edx, [esp + 0x2c]
lea ecx, [ebp + 0x8c]
push edx
call fcn.0043277a
mov eax, dword [ebp + 0x94]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov ecx, dword [eax + 0x1c]
push ecx
call ebx
test eax, eax
mov edi, 5
jne 0x40c98c
mov edx, dword [ebp + 0xac]
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x18]
sub edx, 7
push eax
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0x14
lea eax, [esp + 0x28]
sub esi, ecx
mov ecx, dword [ebp + 0x94]
push ebp
push eax
push 0x50000000
lea edx, [esi - 0xa]
push str.qwert
push 0x455d20
mov dword [esp + 0x48], edx
call fcn.00416a88
mov ecx, dword [ebp + 0xac]
add esi, 0xfffffffc
push 0
sub ecx, 3
push esi
push ecx
mov ecx, dword [ebp + 0x94]
push 2
push 2
push 0x472830
call fcn.00431c59
mov ecx, dword [ebp + 0x94]
push edi
call fcn.00431ca8
mov ecx, dword [ebp + 0x98]
push 0
call fcn.00431ca8
mov ecx, dword [ebp + 0x90]
push 0
call fcn.00431ca8
mov ecx, dword [ebp + 0x9c]
push 0
call fcn.00431ca8
mov ecx, dword [ebp + 0xa8]
push 0
call fcn.00431ca8
mov edx, dword [ebp + 0x88]
mov eax, dword [edx + 0x1c]
push eax
call ebx
test eax, eax
je 0x40c9e9
mov ecx, dword [ebp + 0x88]
push 0
call fcn.00431ca8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c9f9
lea eax, [ebp + 0x8c]
jmp 0x40ca1d
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043265f
mov dword [esp + 0x14], 1
mov dword [esp + 0x444], 0
mov eax, dword [eax]
mov ecx, dword [ebp + 0x94]
push 0
push 0
push 0
push 0
push eax
call fcn.00416280
mov al, byte [esp + 0x14]
mov dword [esp + 0x444], 0xffffffff
test al, 1
je 0x40ca4f
lea ecx, [esp + 0x10]
call fcn.004325f1
mov edx, dword [ebp + 0x1c]
push 0
push 0x64
push 0
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x438
ret 8