Function at 0x406610
Capabilities:
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42de68
mov eax, dword fs:[0]
push eax
mov eax, 0x10b4
call fcn.0042d1a0
mov eax, dword [0x44a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x1070]
push 9
push 0x440e2c
mov dword [ebp - 0x105c], 0xf
mov dword [ebp - 0x1060], 0
mov byte [ebp - 0x1070], 0
call fcn.00401ab0
push 0x440e20
lea edx, [ebp - 0x1070]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1058]
call fcn.00405cc0
push 0x440e18
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10a0]
call fcn.00405cc0
push 0x440bac
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1088]
call fcn.00405cc0
push str.ccidiconnum0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10b8]
call fcn.00405cc0
add esp, 0x10
mov eax, dword [ebp - 0x1074]
cmp eax, 0x10
jb 0x4066f2
inc eax
lea ecx, [ebp - 0x1088]
push eax
push dword [ebp - 0x1088]
call fcn.00401eb0
mov dword [ebp - 0x1074], 0xf
mov dword [ebp - 0x1078], 0
mov byte [ebp - 0x1088], 0
mov eax, dword [ebp - 0x108c]
cmp eax, 0x10
jb 0x40672b
inc eax
lea ecx, [ebp - 0x10a0]
push eax
push dword [ebp - 0x10a0]
call fcn.00401eb0
mov dword [ebp - 0x108c], 0xf
mov dword [ebp - 0x1090], 0
mov byte [ebp - 0x10a0], 0
mov eax, dword [ebp - 0x1044]
cmp eax, 0x10
jb 0x406764
inc eax
lea ecx, [ebp - 0x1058]
push eax
push dword [ebp - 0x1058]
call fcn.00401eb0
mov dword [ebp - 0x1044], 0xf
mov dword [ebp - 0x1048], 0
mov byte [ebp - 0x1058], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x105c]
cmp eax, 0x10
jb 0x4067a1
inc eax
lea ecx, [ebp - 0x1070]
push eax
push dword [ebp - 0x1070]
call fcn.00401eb0
cmp dword [ebp - 0x10a4], 0x10
lea eax, [ebp - 0x10b8]
mov dword [ebp - 0x105c], 0xf
cmovae eax, dword [ebp - 0x10b8]
push eax
push 0x440e38
mov dword [ebp - 0x1060], 0
mov byte [ebp - 0x1070], 0
call fcn.00405dd0
add esp, 8
call fcn.00406180
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push 1
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x1014], 0xf
mov dword [ebp - 0x1018], 0
mov byte [ebp - 0x1028], 0
push 0x11
push 0x440e4c
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 9
call fcn.00401ab0
call fcn.00406500
mov edx, eax
cmp byte [edx], 0
jne 0x40683a
xor ecx, ecx
jmp 0x406849
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406840
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1028]
call fcn.00401480
push 1
push 0x440ba8
lea ecx, [ebp - 0x1028]
call fcn.00401480
call fcn.004065a0
push eax
lea edx, [ebp - 0x1028]
lea ecx, [ebp - 0x1058]
call fcn.00406b10
push 0x440e60
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1040]
call fcn.00405cc0
add esp, 8
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1044]
cmp eax, 0x10
jb 0x4068ba
inc eax
lea ecx, [ebp - 0x1058]
push eax
push dword [ebp - 0x1058]
call fcn.00401eb0
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1044], 0xf
mov dword [ebp - 0x1048], 0
lea edx, [ecx + 1]
mov byte [ebp - 0x1058], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4068e0
sub ecx, edx
je 0x406938
cmp dword [ebp - 0x102c], 0x10
lea eax, [ebp - 0x1040]
cmovae eax, dword [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x406a59
push 0x440e68
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x406a59
push 0
lea eax, [ebp - 0x1010]
push eax
jmp 0x406a53
xor ebx, ebx
cmp dword [ebp + 8], 2
jne 0x406943
mov ebx, dword [edi + 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x440e78
mov edi, eax
push 0x67
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x10bc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x1014], 0x10
lea ecx, [ebp - 0x1028]
push 0
cmovae ecx, dword [ebp - 0x1028]
mov edi, eax
push ecx
call fcn.0041791f
add esp, 8
cmp eax, 0xffffffff
jne 0x4069bd
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push eax
call fcn.0041815b
add esp, 4
cmp dword [ebp - 0x102c], 0x10
lea eax, [ebp - 0x1040]
push 0
cmovae eax, dword [ebp - 0x1040]
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [ebp - 0x10c0], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406a59
push 0
lea eax, [ebp - 0x10c0]
push eax
push edi
push dword [ebp - 0x10bc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x102c], 0x10
lea eax, [ebp - 0x1040]
cmovae eax, dword [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x406a59
push 0x440e7c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x406a59
push 0
push ebx
push 0
push 0
call esi
mov eax, dword [ebp - 0x102c]
cmp eax, 0x10
jb 0x406a77
inc eax
lea ecx, [ebp - 0x1040]
push eax
push dword [ebp - 0x1040]
call fcn.00401eb0
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x102c], 0xf
mov dword [ebp - 0x1030], 0
mov byte [ebp - 0x1040], 0
cmp eax, 0x10
jb 0x406ab0
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.00401eb0
mov eax, dword [ebp - 0x10a4]
mov dword [ebp - 0x1014], 0xf
mov dword [ebp - 0x1018], 0
mov byte [ebp - 0x1028], 0
cmp eax, 0x10
jb 0x406ae9
inc eax
lea ecx, [ebp - 0x10b8]
push eax
push dword [ebp - 0x10b8]
call fcn.00401eb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cc96
mov esp, ebp
pop ebp
ret