Function at 0x412460
Capabilities:
Create thread
Get common file path
Get startup folder
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442894
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x452598]
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, ecx
mov dword [ebp - 0x340], edi
xor ebx, ebx
mov dword [ebp - 0x33c], ebx
call fcn.004120b0
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x330]
call fcn.00423f70
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], ebx
mov word [ebp - 0x290], ax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], eax
mov word [ebp - 0x260], ax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], eax
mov word [ebp - 0x278], ax
mov esi, dword [edi + 0x18c]
xor ecx, ecx
mov dword [ebp - 0x338], ecx
mov ecx, dword [edi + 0x190]
sub ecx, esi
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
mov byte [ebp - 4], 4
add eax, edx
je 0x412ba2
xor eax, eax
mov dword [ebp - 0x344], 0x2f
mov dword [ebp - 0x334], eax
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x41256d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0041f5e0
mov esi, eax
lea eax, [ebp - 0x248]
add esp, 8
cmp eax, esi
je 0x412615
cmp dword [ebp - 0x234], 8
jb 0x4125a4
push dword [ebp - 0x248]
call fcn.004281da
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp dword [esi + 0x14], 8
jae 0x4125e2
mov eax, dword [esi + 0x10]
inc eax
je 0x4125f0
add eax, eax
push eax
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.00428450
add esp, 0xc
jmp 0x4125f0
mov eax, dword [esi]
mov dword [ebp - 0x248], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x238], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x234], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x21c], 8
jb 0x41262c
push dword [ebp - 0x230]
call fcn.004281da
add esp, 4
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x248]
call fcn.00415970
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.00415ad0
mov esi, eax
lea eax, [ebp - 0x278]
cmp eax, esi
je 0x4126f0
cmp dword [ebp - 0x264], 8
jb 0x41267f
push dword [ebp - 0x278]
call fcn.004281da
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
cmp dword [esi + 0x14], 8
jae 0x4126bd
mov eax, dword [esi + 0x10]
inc eax
je 0x4126cb
add eax, eax
push eax
lea eax, [ebp - 0x278]
push esi
push eax
call fcn.00428450
add esp, 0xc
jmp 0x4126cb
mov eax, dword [esi]
mov dword [ebp - 0x278], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x268], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x264], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x21c], 8
jb 0x412707
push dword [ebp - 0x230]
call fcn.004281da
add esp, 4
mov eax, dword [edi + 0x18c]
add eax, 0x30
add eax, dword [ebp - 0x334]
cmp dword [eax + 0x14], 0x10
jb 0x41271e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0041f5e0
mov esi, eax
lea eax, [ebp - 0x290]
add esp, 8
cmp eax, esi
je 0x4127c6
cmp dword [ebp - 0x27c], 8
jb 0x412755
push dword [ebp - 0x290]
call fcn.004281da
add esp, 4
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
cmp dword [esi + 0x14], 8
jae 0x412793
mov eax, dword [esi + 0x10]
inc eax
je 0x4127a1
add eax, eax
push eax
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00428450
add esp, 0xc
jmp 0x4127a1
mov eax, dword [esi]
mov dword [ebp - 0x290], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x280], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x27c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x21c], 8
jb 0x4127dd
push dword [ebp - 0x230]
call fcn.004281da
add esp, 4
mov eax, dword [edi + 0x18c]
add eax, 0x18
add eax, dword [ebp - 0x334]
cmp dword [eax + 0x14], 0x10
jb 0x4127f4
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0041f5e0
mov esi, eax
lea eax, [ebp - 0x260]
add esp, 8
cmp eax, esi
je 0x41289c
cmp dword [ebp - 0x24c], 8
jb 0x41282b
push dword [ebp - 0x260]
call fcn.004281da
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp dword [esi + 0x14], 8
jae 0x412869
mov eax, dword [esi + 0x10]
inc eax
je 0x412877
add eax, eax
push eax
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.00428450
add esp, 0xc
jmp 0x412877
mov eax, dword [esi]
mov dword [ebp - 0x260], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x250], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x21c], 8
jb 0x4128b3
push dword [ebp - 0x230]
call fcn.004281da
add esp, 4
push 8
xor eax, eax
push str._ccid_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00414d90
lea eax, [edi + 0x49c]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00415a30
cmp dword [ebp - 0x21c], 8
mov byte [ebp - 4], 4
jb 0x41291d
push dword [ebp - 0x230]
call fcn.004281da
add esp, 4
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x330]
push 0x44545c
push eax
call fcn.00424230
push 0x44
call fcn.00428209
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x348], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x412a51
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
cmovae edx, dword [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
je 0x4129b2
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4129a3
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.00414d90
or ebx, 1
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 7
mov dword [ebp - 0x33c], ebx
call fcn.00423ff0
mov edx, eax
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
cmp word [edx], ax
jne 0x4129ff
xor ecx, ecx
jmp 0x412a13
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a04
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2a8]
call fcn.00414d90
push 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2a8]
or ebx, 2
push eax
mov ecx, esi
mov dword [ebp - 4], 8
mov dword [ebp - 0x33c], ebx
call fcn.0041ba60
mov edi, dword [ebp - 0x340]
mov esi, eax
jmp 0x412a53
xor esi, esi
test bl, 2
je 0x412a8f
and ebx, 0xfffffffd
cmp dword [ebp - 0x294], 8
jb 0x412a72
push dword [ebp - 0x2a8]
call fcn.004281da
add esp, 4
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
mov dword [ebp - 4], 4
test bl, 1
je 0x412ad2
and ebx, 0xfffffffe
cmp dword [ebp - 0x21c], 8
jb 0x412ab5
push dword [ebp - 0x230]
call fcn.004281da
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x413f60
push 0
push 0
mov byte [esi + 0xd], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x412afa
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x334]
add ecx, dword [edi + 0x18c]
cmp dword [ebp - 0x27c], 8
lea edi, [ebp - 0x290]
movzx eax, byte [ecx + 0x4a]
cmovae edi, dword [ebp - 0x290]
cmp dword [ebp - 0x24c], 8
push eax
movzx eax, byte [ecx + 0x49]
push eax
movzx eax, byte [ecx + 0x48]
lea esi, [ebp - 0x260]
cmovae esi, dword [ebp - 0x260]
push eax
lea ecx, [ebp - 0x330]
call fcn.00423ff0
push eax
push edi
push esi
call fcn.0041fa50
mov edi, dword [ebp - 0x340]
inc dword [ebp - 0x338]
mov esi, dword [edi + 0x18c]
mov ecx, dword [edi + 0x190]
add dword [ebp - 0x334], 0x4c
sub ecx, esi
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x18
cmp dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x334]
jb 0x412563
call fcn.0041fee0
cmp dword [ebp - 0x264], 8
jb 0x412bbe
push dword [ebp - 0x278]
call fcn.004281da
add esp, 4
xor eax, eax
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
jb 0x412bf2
push dword [ebp - 0x260]
call fcn.004281da
add esp, 4
xor eax, eax
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
jb 0x412c26
push dword [ebp - 0x248]
call fcn.004281da
add esp, 4
xor eax, eax
cmp dword [ebp - 0x27c], 8
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x412c5a
push dword [ebp - 0x290]
call fcn.004281da
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00423f90
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.00428be6
mov esp, ebp
pop ebp
ret