Function at 0x40976f
Capabilities:
Create process on windows

Disassembly:
push 0x270
mov eax, 0x480668
call fcn.0046435b
mov edi, ecx
mov ebx, edx
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x3d0]
mov dword [ebp - 0x23c], ebx
call fcn.00458871
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x590]
call fcn.00458871
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x440]
call fcn.00458871
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x4b0]
call fcn.00458871
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x520]
call fcn.00458871
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x268]
call fcn.00458632
test al, al
je 0x409810
inc dword [0x4a6d30]
push 0
push 0xf020
push 0x112
push dword [ebx + 0x1c4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, ebx
call fcn.00409da8
jmp 0x409d9e
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x1f0]
call fcn.00458632
test al, al
je 0x40992b
cmp dword [ebx + 0x1cc], 7
jne 0x40983c
mov ecx, ebx
call fcn.0040a746
jmp 0x409d9e
lea eax, [ebp - 0x1ec]
push eax
call fcn.00458ee1
and dword [ebp - 4], 0
lea eax, [ebx + 0x11c]
lea edi, [ebp - 0x1ec]
call fcn.0045902b
lea eax, [ebx + 0x100]
push eax
push eax
add ebx, 0x90
push ebx
mov ebx, edi
call fcn.0045908a
mov eax, dword [ebp - 0x23c]
add eax, 0x138
call fcn.00458fe7
mov eax, 0x488b18
lea ecx, [ebp - 0x238]
call fcn.00404670
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.00458d6d
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x238]
mov byte [ebp - 4], bl
call fcn.004049f4
push 0x488580
push 0x190
push 0xfffffffffffffff4
lea edi, [ebp - 0x54]
call fcn.00458d7f
mov esi, dword [ebp - 0x23c]
mov eax, dword [esi + 0x1c4]
mov ecx, dword [esi + 0x1c8]
push ebx
push 0x4591a5
push eax
push 0x72
lea edx, [ebp - 0x1ec]
push ecx
mov dword [ebp - 0x34], ebx
mov dword [0x4a6cc0], edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
mov dword [0x4a6cc0], ebx
jne 0x409916
inc dword [0x4a6d34]
mov ecx, esi
call fcn.0040a746
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1ec]
push eax
call fcn.00458f56
jmp 0x409d9e
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x358]
call fcn.00458632
test al, al
je 0x4099ef
and dword [ebp - 0x260], 0
inc dword [0x4a6d44]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x25c]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x254], 0x488b2c
mov dword [ebp - 0x250], 0x141
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x409d9e
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x27c]
call fcn.00404670
lea edx, [ebp - 0x27c]
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0040a315
push 0
push 1
lea esi, [ebp - 0x27c]
call fcn.004049f4
lea eax, [ebp - 0x21c]
push eax
push 0
push 0xc
push dword [ebx + 0x1ec]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x409d9e
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x2e0]
call fcn.00458632
test al, al
je 0x409d4f
cmp byte [ebx + 0x822], 0
jne 0x409a52
lea edx, [ebx + 0x154]
mov ecx, ebx
call fcn.0040a315
test al, al
mov edi, ebx
jne 0x409a2c
call fcn.00409fcf
jmp 0x409d9e
mov byte [ebx + 0x822], 1
call fcn.00409ed1
mov eax, dword [ebx + 0x1cc]
cmp eax, 9
jge 0x409d9e
push eax
call fcn.00407862
jmp 0x409d9e
mov byte [ebx + 0x671], 0
mov byte [ebx + 0x820], 0
inc dword [0x4a6d38]
mov eax, dword [ebx + 0x1cc]
cmp eax, 1
jne 0x409a8d
push 0
mov edi, ebx
call fcn.00407862
call fcn.0040715e
mov ecx, ebx
call fcn.00407235
xor al, al
jmp 0x409da0
cmp eax, 3
je 0x409d48
cmp eax, 5
je 0x409d48
cmp eax, 8
jne 0x409d3e
push 6
mov edi, ebx
call fcn.00407862
cmp dword [0x4a6ecc], 8
mov eax, dword [0x4a6eb8]
jae 0x409ac4
mov eax, 0x4a6eb8
push eax
call fcn.0044a2e0
test eax, eax
pop ecx
je 0x409d2c
lea esi, [ebx + 0x154]
lea eax, [ebx + 0x1a8]
mov ecx, esi
call fcn.0040b935
test al, al
setne al
mov byte [0x4a6ccc], al
mov eax, 0x4888b8
lea ecx, [ebp - 0x238]
call fcn.00404670
push 0x49d9b0
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 3
call fcn.00405073
push 0x4888c8
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
push 0x4888e4
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
push str._rf_
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
mov al, byte [ebx + 0x42d]
test al, al
mov edi, 0x488928
lea eax, [ebp - 0x238]
je 0x409b6e
mov byte [0x4a6cc8], 1
push 0x488924
jmp 0x409b76
mov byte [0x4a6cc8], 0
push edi
push eax
call fcn.00405073
push 0x48892c
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
cmp byte [ebx + 0x50d], 0
lea eax, [ebp - 0x238]
je 0x409baa
mov byte [0x4a6cca], 1
push 0x488924
jmp 0x409bb2
mov byte [0x4a6cca], 0
push edi
push eax
call fcn.00405073
push 0x488944
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
cmp byte [ebx + 0x5ed], 0
lea eax, [ebp - 0x238]
je 0x409bdf
push 0x488924
jmp 0x409be0
push edi
push eax
call fcn.00405073
push 0x488958
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
cmp byte [ebx + 0x49d], 0
lea eax, [ebp - 0x238]
je 0x409c14
mov byte [0x4a6cc9], 1
push 0x488924
jmp 0x409c1c
mov byte [0x4a6cc9], 0
push edi
push eax
call fcn.00405073
cmp dword [esi + 0x18], 8
jb 0x409c2d
mov esi, dword [esi + 4]
jmp 0x409c30
add esi, 4
push esi
lea eax, [ebp - 0x23c]
push eax
call fcn.004045f7
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.0040aeee
mov ebx, 0x48897c
jmp 0x409c65
push 0x485248
push ebx
lea eax, [ebp - 0x23c]
push eax
call fcn.0040ad4e
push ebx
lea esi, [ebp - 0x23c]
call fcn.0040aec3
cmp eax, 0xffffffff
jne 0x409c53
lea eax, [ebp - 0x240]
push 0x488984
push eax
mov ecx, esi
call fcn.0040aff2
pop ecx
pop ecx
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
call fcn.00401144
push 0x488990
lea eax, [ebp - 0x238]
push eax
call fcn.00405073
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x220], 8
mov ecx, dword [ebp - 0x234]
mov dword [0x4a6f04], eax
jae 0x409ce0
lea ecx, [ebp - 0x234]
cmp dword [0x4a6ecc], 8
mov eax, dword [0x4a6eb8]
jae 0x409cf3
mov eax, 0x4a6eb8
push 5
xor esi, esi
push esi
push ecx
push eax
push 0x488994
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00408d4f
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
call fcn.00401144
push esi
push 1
lea esi, [ebp - 0x238]
call fcn.004049f4
jmp 0x409a86
inc dword [0x4a6d54]
push 8
call fcn.00407862
jmp 0x409a86
cmp eax, 7
jne 0x409d9e
jmp 0x409830
push 4
jmp 0x409a73
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x67c]
call fcn.00458e80
test al, al
je 0x409d7e
inc dword [0x4a6d40]
cmp dword [ebx + 0x884], 2
mov edi, ebx
jne 0x409a22
call fcn.00409ed1
jmp 0x409d9e
push edi
push dword [ebp + 8]
lea esi, [ebx + 0x6b8]
call fcn.00458e80
test al, al
je 0x409da0
inc dword [0x4a6d3c]
mov edi, ebx
call fcn.00409dd7
mov al, 1
call fcn.004643de
ret 4