Function at 0x40ed4b
Capabilities:
Create thread

Disassembly:
mov eax, 0x415594
call fcn.00414a90
sub esp, 0x894
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x884]
mov dword [ebp - 0x1c], 0x3f8
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor esi, esi
mov dword [ebp - 0x10], eax
push esi
push 0x20
call fcn.00405b3d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00402f54
cmp dword [ebp + 8], 1
mov dword [ebp - 4], esi
jne 0x40eda7
mov eax, dword [ebx + 0x880]
mov dword [ebp - 0x1c], 0x37a9
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x858]
cmp dword [ebp + 8], 1
mov dword [ebp - 0x44], eax
lea eax, [ebx + 0x850]
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x854]
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 0x85c]
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x868]
mov dword [ebp - 0x58], eax
lea eax, [ebx + 0x860]
mov dword [ebp - 0x54], eax
lea eax, [ebx + 0x864]
mov dword [ebp - 0x50], eax
lea eax, [ebx + 0x86c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x14], eax
jne 0x40ee07
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 1
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], str.import_subdirs
mov dword [ebp - 0x68], str.import_files
mov dword [ebp - 0x64], str.import_folders
mov dword [ebp - 0x60], str.includ_root_name
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x80], str.drop_import_subdirs
mov dword [ebp - 0x7c], str.drop_import_files
mov dword [ebp - 0x78], str.drop_import_folders
mov dword [ebp - 0x74], str.drop_includ_root_name
mov dword [ebp - 0x70], esi
jne 0x40ee57
lea eax, [ebp - 0x80]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
sub esi, edi
mov dword [ebp - 0x30], 4
push 0x424740
mov ecx, ebx
push dword [esi + edi]
push dword [edi]
call fcn.0040da1a
add edi, 4
dec dword [ebp - 0x30]
jne 0x40ee66
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x40f0d9
mov edx, dword [ebp - 0x14]
push 3
pop eax
mov ecx, dword [edx + 4]
cmp dword [ecx], 1
je 0x40eea0
mov ecx, dword [edx + 8]
cmp dword [ecx], 1
jne 0x40eea2
xor eax, eax
cmp dword [ebp + 8], esi
mov edi, 0x400
jne 0x40eeb9
push dword [ebp - 0x24]
or eax, edi
push 0x3f8
push eax
jmp 0x40eece
push esi
push 0x31
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x3f8
push 0x403
push dword [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
call esi
push 0
push 1
push 0xc00
push dword [ebp - 0x10]
call esi
push 0
push 0x19
call fcn.00405b3d
pop ecx
pop ecx
push eax
mov eax, dword [ebp - 0x14]
push 0x3f9
mov eax, dword [eax]
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 8
or eax, edi
push eax
push dword [ebp - 0x10]
call esi
push 0
push 0x1a
call fcn.00405b3d
pop ecx
pop ecx
push eax
mov eax, dword [ebp - 0x14]
push 0x3fa
mov eax, dword [eax + 4]
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 8
or eax, edi
push eax
push dword [ebp - 0x10]
call esi
push 0
push 0x1b
call fcn.00405b3d
pop ecx
pop ecx
push eax
mov eax, dword [ebp - 0x14]
push 0x3fb
mov eax, dword [eax + 8]
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 8
or eax, edi
push eax
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 8], 0
jne 0x40ef8c
push 0
push 0x1c
call fcn.00405b3d
pop ecx
pop ecx
push eax
mov eax, dword [ebp - 0x14]
push 0x3fc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 8
or eax, edi
push eax
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0xa0]
push dword [ebp - 0x18]
push eax
call fcn.00412602
mov esi, eax
lea edi, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp dword [ebp + 8], 0
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x88]
jne 0x40efbf
mov eax, dword [ebp - 0x90]
push 1
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x1c]
mov esi, 0x403
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x84]
push esi
mov dword [ebp - 0x28], eax
push dword [ebp - 0x18]
call edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [ebp + 8]
push 0
push dword [ebx + 0x898]
neg eax
push 0
push dword [ebp - 0x28]
sbb eax, eax
push dword [ebp - 0x2c]
and eax, 8
or ax, 0x102
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push 0
mov dword [ebp + 0xc], eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x18]
call edi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x40f0d9
cmp dword [ebp + 0xc], 0x3f8
jne 0x40f09f
cmp dword [ebp + 8], esi
jne 0x40f09f
mov eax, dword [0x425320]
mov ecx, 0x1ff
mov dword [ebp - 0x8a0], eax
xor eax, eax
lea edi, [ebp - 0x89c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x8a0]
push eax
push 1
push esi
push dword [ebx + 0x898]
call fcn.004078a0
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x40f09f
push 1
mov ecx, ebx
call fcn.0040da71
lea eax, [ebx + 0x38]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push esi
push ebx
push 0x409431
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffc07
cmp eax, esi
jl 0x40f0d9
cmp eax, 4
jge 0x40f0d9
mov ecx, dword [ebp - 0x14]
push 0x424740
shl eax, 2
mov esi, dword [eax + ecx]
lea edi, [eax + ecx]
xor ecx, ecx
cmp dword [esi], ecx
sete cl
mov dword [esi], ecx
push dword [edi]
mov ecx, dword [ebp - 0x20]
push dword [eax + ecx]
mov ecx, ebx
call fcn.0040da3f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402f28
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8