Function at 0x40658f
Capabilities:
Enumerate gui resources
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0040c49b
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [eax]
lea ebx, [edi + 0xc]
push ebx
call fcn.0040c569
test al, al
jne 0x406694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 6
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.0040c476
lea eax, [ebp + 0xc]
push 1
mov dword [ebp + 0x10], edi
inc dword [edi]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0xc], 0xa
call fcn.0040c1c4
lea ecx, [ebp - 0x248]
call fcn.00404674
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040c1c4
mov edx, ebx
lea ecx, [ebp - 0x48]
call fcn.0040bf7a
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov edi, ecx
call fcn.00404674
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c1c4
cmp ebx, 5
jne 0x40665f
mov ecx, dword [ebp + 8]
call fcn.004069da
test al, al
je 0x406687
push 0xf
lea ecx, [ebp - 0x448]
call fcn.0040c476
mov edi, eax
mov ecx, edi
call fcn.00404674
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c1c4
mov eax, dword [ebp + 0x10]
mov esi, dword [esi + 4]
test esi, esi
lea edi, [eax + 0xc]
mov eax, esi
jne 0x406674
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
lea ecx, [ebp - 0x248]
push 0
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp + 0x10]
call fcn.0040c13a
jmp 0x4067f8
mov ecx, dword [0x41a078]
call fcn.0040a6f5
cmp ax, 0x500
jb 0x406814
push 0x5c
xor eax, eax
and byte [ebp + 0x17], al
pop edx
cmp word [ebx], dx
jne 0x406721
cmp word [edi + 0xe], dx
jne 0x406721
mov cx, word [edi + 0x10]
cmp cx, 0x3f
je 0x4066cc
cmp cx, 0x2e
jne 0x40671d
cmp word [edi + 0x12], dx
jne 0x406721
mov cx, word [edi + 0x14]
test cx, cx
je 0x4066eb
cmp word [edi + 0x16], 0x3a
jne 0x4066eb
and byte [ebp + 0x17], 0
push 4
pop eax
jmp 0x406721
cmp word [edi + 0x1a], dx
jne 0x406721
cmp cx, 0x55
je 0x4066fd
cmp cx, 0x75
jne 0x406721
mov cx, word [edi + 0x16]
cmp cx, 0x4e
je 0x40670d
cmp cx, 0x6e
jne 0x406721
mov cx, word [edi + 0x18]
cmp cx, 0x43
je 0x40671d
cmp cx, 0x63
jne 0x406721
mov byte [ebp + 0x17], 1
mov bl, byte [ebp + 0x17]
test bl, bl
jne 0x40675c
mov cx, word [edi + eax*2 + 0xc]
mov word [ebp - 8], cx
mov cx, word [edi + eax*2 + 0xe]
mov word [ebp - 6], cx
mov ax, word [edi + eax*2 + 0x10]
and word [ebp - 2], 0
mov word [ebp - 4], ax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test al, 4
je 0x40675a
test al, 5
jne 0x40675c
mov bl, 1
push dword [esi + 0x1dc]
lea ecx, [ebp - 0x40]
push dword [ebp + 0xc]
call fcn.0040f0e0
test bl, bl
jne 0x40680c
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040f15b
test al, al
jne 0x40680c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40680c
cmp byte [ebp + 0x17], bl
jne 0x40680c
mov dword [ebp + 0xc], edi
inc dword [edi]
push 0xd
lea ecx, [ebp - 0x448]
call fcn.0040c476
push eax
lea ecx, [ebp + 0xc]
call fcn.004017c3
mov eax, dword [ebp + 0xc]
push 6
lea ecx, [ebp - 0x448]
lea edi, [eax + 0xc]
call fcn.0040c476
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4067d6
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
push 4
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxExW]
cmp eax, 6
lea ecx, [ebp + 0xc]
jne 0x406807
call fcn.0040c13a
lea ecx, [ebp - 0x40]
call fcn.0040f102
lea ecx, [ebp - 0x28]
call fcn.0040c4c3
xor al, al
jmp 0x40699a
call fcn.0040c13a
lea ecx, [ebp - 0x40]
call fcn.0040f102
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov cx, word [eax + 0xc]
cmp cx, 0x5c
je 0x406874
test cx, cx
je 0x40682f
cmp word [eax + 0xe], 0x3a
je 0x406874
mov eax, dword [0x41a098]
push 1
mov dword [ebp + 8], eax
push 0x178b
inc dword [eax]
lea ecx, [ebp + 8]
call fcn.0040b406
push ebx
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.004069a1
lea edi, [esi + 0x1d4]
push eax
mov ecx, edi
call fcn.0040c287
lea ecx, [ebp + 0xc]
call fcn.0040c13a
lea ecx, [ebp + 8]
call fcn.0040c13a
jmp 0x406882
lea edi, [esi + 0x1d4]
push ebx
mov ecx, edi
call fcn.0040c287
cmp dword [ebp - 0x1c], 0
je 0x4068b8
push dword [ebp - 0x14]
mov ecx, dword [esi + 0x110]
call fcn.0040785a
lea ecx, [esi + 0x1d8]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x4068ad
mov eax, dword [ebp - 0x14]
or eax, 0xf0f00000
mov dword [ecx], eax
cmp byte [ebp - 0xc], 0
jne 0x4068cc
mov eax, dword [ebp - 0x10]
jmp 0x4068d2
push dword [esi + 0xd0]
lea ecx, [esi + 0x24]
call fcn.0040785a
mov dword [esi + 0x1d8], eax
mov eax, dword [esi + 0xd8]
mov ecx, edi
mov dword [esi + 0x1dc], eax
call fcn.0040b599
mov eax, dword [edi]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
inc dword [eax]
call fcn.0040b54d
mov eax, dword [eax]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
call fcn.0040c13a
cmp byte [ebp + 0x10], 0
je 0x406911
push 0
mov ecx, esi
call fcn.004061c9
lea ebx, [esi + 0x130]
mov ecx, ebx
call fcn.00418bbe
push 0
push 0xb
lea ecx, [ebp - 0x448]
call fcn.0040c476
push eax
lea ecx, [esi + 0x198]
call fcn.0040aac4
mov ecx, dword [edi]
add ecx, 0xc
call fcn.0040b784
mov dword [esi + 0x1cc], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov dword [esi + 0x1d0], edx
call fcn.00418c0a
push 0
push str._1_1_
lea ecx, [esi + 0x198]
call fcn.0040aac4
mov ecx, esi
call fcn.00405fd8
push edi
lea ecx, [esi + 0x24]
call fcn.00402d66
test al, al
je 0x406990
push 0x8000
push 0x40651a
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [ebp - 0x28]
call fcn.0040c4c3
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10