Function at 0x4103c0
Capabilities:
Create thread
Get common file path
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fb95
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x44f598]
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
xor ebx, ebx
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x338], ebx
call fcn.004218b0
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0xc0]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ecx], bl
call fcn.00404590
call fcn.0041fa00
add esp, 0x18
mov ecx, edi
call fcn.00410af0
test al, al
je 0x410ab7
call fcn.0041c9a0
push eax
lea ecx, [ebp - 0x230]
call fcn.0040f050
mov esi, dword [ebp - 0x220]
push 1
push esi
push 0x4422f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004132a0
push esi
inc eax
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.00413a80
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4104cc
cmp dword [ebp - 0x21c], 8
jb 0x4104a3
push dword [ebp - 0x230]
call fcn.00425b0a
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004126e0
cmp dword [ebp - 0x264], 8
jb 0x4104e3
push dword [ebp - 0x278]
call fcn.00425b0a
add esp, 4
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], 0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
mov dword [ebp - 0x338], 0x2e
call fcn.00413920
push eax
push 0
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.00413a80
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x410586
cmp dword [ebp - 0x21c], 8
jb 0x41055d
push dword [ebp - 0x230]
call fcn.00425b0a
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004126e0
cmp dword [ebp - 0x264], 8
jb 0x41059d
push dword [ebp - 0x278]
call fcn.00425b0a
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x33c], esp
push 0x44241c
call fcn.0040f050
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 3
call fcn.00412ec0
lea eax, [ebp - 0x254]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00412580
push eax
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 4
call fcn.00410300
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 2
test eax, eax
je 0x410634
push dword [ebp - 0x33c]
lea ecx, [ebp - 0x334]
push ecx
push dword [ebp - 0x250]
push eax
call fcn.0040ee70
push dword [ebp - 0x254]
call fcn.00425b0a
add esp, 0x14
mov ecx, dword [ebp - 0x344]
mov esi, dword [ebp - 0x348]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x41066f
lea eax, [esi + 0x30]
lea ecx, [edi + 0x49c]
cmp ecx, eax
je 0x41066f
push 0xffffffffffffffff
push 0
push eax
call fcn.00412ec0
cmp dword [edi + 0x398], 0x10
mov esi, dword [edi + 0x394]
lea ecx, [edi + 0x384]
jb 0x410686
mov ecx, dword [ecx]
mov eax, 1
cmp esi, eax
cmovb eax, esi
push eax
push 0x442420
push ecx
call fcn.00401010
add esp, 0xc
test eax, eax
jne 0x4106b7
cmp esi, 1
jae 0x4106ad
or eax, 0xffffffff
jmp 0x4106b5
xor eax, eax
cmp esi, 1
setne al
test eax, eax
sete al
test al, al
je 0x410a49
push 0x4422f4
lea ecx, [ebp - 0x278]
call fcn.0040f050
push 0x4422f4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.0040f050
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x334]
lea esi, [edi + 0x39c]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
mov byte [ebp - 0x334], 0x2f
call fcn.00413890
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x260]
push eax
mov ecx, esi
call fcn.00413a40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov byte [ebp - 4], 7
call fcn.00426dc0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x218], 0
jne 0x41075d
xor ecx, ecx
jmp 0x410775
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410766
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.00412fe0
cmp dword [ebp - 0x24c], 0x10
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0041d030
lea ecx, [ebp - 0x248]
add esp, 8
mov dword [ebp - 0x338], eax
cmp ecx, eax
je 0x410802
cmp dword [ebp - 0x234], 8
jb 0x4107d9
push dword [ebp - 0x248]
call fcn.00425b0a
mov eax, dword [ebp - 0x338]
add esp, 4
xor ecx, ecx
mov word [ebp - 0x248], cx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
call fcn.004126e0
cmp dword [ebp - 0x27c], 8
jb 0x410819
push dword [ebp - 0x290]
call fcn.00425b0a
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x278]
call fcn.00412c80
push 0x44
call fcn.00425b39
add esp, 4
mov dword [ebp - 0x33c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4108b2
cmp dword [esi + 0x14], 0x10
jb 0x41084f
mov esi, dword [esi]
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.0041d030
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 9
mov dword [ebp - 0x338], 1
jb 0x410875
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040f050
mov ecx, dword [ebp - 0x33c]
push 0
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x278]
mov ebx, 3
push eax
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x338], ebx
call fcn.00419a20
mov esi, eax
jmp 0x4108b4
xor esi, esi
test bl, 2
je 0x4108f0
and ebx, 0xfffffffd
cmp dword [ebp - 0x294], 8
jb 0x4108d3
push dword [ebp - 0x2a8]
call fcn.00425b0a
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], 7
test bl, 1
je 0x410930
cmp dword [ebp - 0x27c], 8
jb 0x410913
push dword [ebp - 0x290]
call fcn.00425b0a
add esp, 4
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x4126b0
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 0x410958
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x33c], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
lea eax, [edi + 0x49c]
push 0
push eax
call fcn.00412ec0
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 0xd
call fcn.00412ec0
mov byte [ebp - 4], 7
call fcn.0041d980
add esp, 0x30
cmp dword [ebp - 0x24c], 0x10
jb 0x4109df
push dword [ebp - 0x260]
call fcn.00425b0a
add esp, 4
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
jb 0x410a11
push dword [ebp - 0x248]
call fcn.00425b0a
add esp, 4
xor eax, eax
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 2
jb 0x410a49
push dword [ebp - 0x278]
call fcn.00425b0a
add esp, 4
mov ecx, edi
call fcn.00411e40
mov ecx, edi
call fcn.004115f0
mov ebx, dword [ebp - 0x348]
test ebx, ebx
je 0x410a83
push dword [ebp - 0x33c]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 0x344]
push ebx
call fcn.0040ee70
push ebx
call fcn.00425b0a
add esp, 0x14
cmp dword [ebp - 0x21c], 8
jb 0x410a9a
push dword [ebp - 0x230]
call fcn.00425b0a
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x330]
mov dword [ebp - 4], 0xffffffff
call fcn.004218d0
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.00426314
mov esp, ebp
pop ebp
ret