Function at 0x402c10
Capabilities:
Check if file exists
Check mutex on windows
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x464c2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a8
mov eax, dword [0x477b14]
push ebx
mov ebx, dword [esp + 0x3bc]
push ebp
push esi
mov esi, dword [esp + 0x3c8]
mov ebp, esi
imul ebp, ebp, 0x12c
mov dword [esp + 0x3b0], eax
mov eax, dword [ebx + 0x25c]
mov ecx, dword [eax + ebp + 0x44]
add eax, ebp
push edi
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], ebp
jne 0x403432
mov ecx, dword [eax + 0x50]
push ecx
push str._Default_
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403068
mov edx, dword [ebx + 0x25c]
mov eax, dword [edx + ebp + 0x50]
push eax
push str.___0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403068
mov ecx, dword [ebx + 0x25c]
mov edx, dword [ecx + ebp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x402ffb
mov word [esp + 0x1c], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x25c]
mov ecx, dword [eax + ebp + 0x50]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
mov edi, eax
test edi, edi
jne 0x402d25
mov edx, dword [ebx + 0x25c]
mov eax, dword [edx + ebp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ecx, dword [ebx + 0x25c]
mov edx, dword [ecx + ebp + 0x50]
test eax, eax
push edx
lea eax, [esp + 0x20]
je 0x402d1e
push 0x47b848
push 0x466684
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x402d25
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x402d30
test edi, edi
je 0x402e38
mov eax, dword [0x47abd0]
test eax, eax
jne 0x402d73
push 0x477498
lea ecx, [esp + 0x228]
push str._sDLMutex
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x224]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x47abd0], eax
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402f2d
mov ecx, dword [0x47abc4]
xor edi, edi
lea eax, [ecx + 0x210]
cmp edi, dword [0x47abc8]
jge 0x402f25
cmp ebx, dword [eax - 0x210]
jne 0x402dba
mov edx, dword [esp + 0x3cc]
cmp edx, dword [eax - 0x20c]
jne 0x402dba
cmp dword [eax], 0
jne 0x402dc2
inc edi
add eax, 0x218
jmp 0x402d92
mov esi, edi
imul esi, esi, 0x218
lea eax, [esi + ecx + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x47abc8]
dec eax
cmp edi, eax
jge 0x402e03
mov edx, dword [0x47abc4]
mov ecx, eax
sub ecx, edi
imul ecx, ecx, 0x218
add edx, esi
lea esi, [edx + 0x218]
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [0x47abc8], eax
imul eax, eax, 0x218
push eax
mov eax, dword [0x47abc4]
push eax
call fcn.00445106
mov ecx, dword [0x47abd0]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esp, 8
push ecx
mov dword [0x47abc4], eax
xor edi, edi
call esi
jmp 0x402d30
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ffb
lea esi, [esp + 0x1c]
call fcn.00401ea0
push 0x58
mov edi, eax
call fcn.00444aad
add esp, 4
cmp edi, 4
mov dword [esp + 0x18], eax
jne 0x402ed0
test eax, eax
mov dword [esp + 0x3c0], 2
je 0x402e95
mov ecx, dword [ebx + 0x25c]
movsx edx, word [ecx + ebp + 0x98]
push edx
push 0
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0042e530
jmp 0x402e97
xor eax, eax
mov edx, dword [ebx + 0x25c]
mov edi, dword [eax + 0xc]
lea ecx, [edx + ebp + 0x98]
movsx edx, word [ecx]
cmp edi, edx
mov dword [esp + 0x3c0], 0xffffffff
mov esi, eax
je 0x4031db
movsx ecx, word [ecx]
push ecx
push ecx
mov ecx, eax
call fcn.0042ee00
jmp 0x4031db
test eax, eax
mov dword [esp + 0x3c0], 3
je 0x402eef
push 0x42
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0042e140
jmp 0x402ef1
xor eax, eax
cmp edi, 1
mov dword [esp + 0x3c0], 0xffffffff
mov esi, eax
jne 0x4031db
mov edx, dword [ebx + 0x25c]
mov ecx, dword [edx + ebp + 0x64]
test ecx, ecx
je 0x4031db
mov ecx, eax
call fcn.0042a570
jmp 0x4031db
mov eax, dword [0x47abd0]
push eax
call esi
mov ecx, dword [0x47abd0]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402ffb
mov eax, dword [0x47abc8]
mov edx, dword [0x47abc4]
inc eax
mov dword [0x47abc8], eax
imul eax, eax, 0x218
push eax
push edx
call fcn.00445106
mov ecx, dword [0x47abc8]
mov edx, dword [esp + 0x3d4]
imul ecx, ecx, 0x218
mov dword [0x47abc4], eax
add eax, ecx
mov ecx, dword [0x47abcc]
mov dword [eax - 0x218], ebx
mov dword [eax - 0x214], edx
xor edi, edi
mov dword [eax - 8], edi
mov word [eax - 0x210], di
mov dword [eax - 4], ecx
mov eax, dword [0x47abd0]
add esp, 8
inc ecx
push eax
mov dword [0x47abcc], ecx
call esi
mov edx, dword [0x47abc8]
mov eax, dword [0x47abc4]
imul edx, edx, 0x218
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], edi
mov ecx, dword [edx + eax - 4]
push ecx
push 0x402870
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebx + 0x25c]
mov ecx, dword [ebx + 0xb94]
add edx, ebp
push edx
call fcn.00430340
cmp eax, edi
je 0x402ffb
xor eax, eax
jmp 0x4034a7
push ebx
call fcn.004089c0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40300f
mov ebp, 1
push ebx
call fcn.00408a20
mov edi, eax
add esp, 4
test edi, edi
jne 0x403023
mov edi, 1
push 0x58
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c0], 4
je 0x40304d
push 0x42
push edi
push ebp
mov ecx, eax
call fcn.0042d000
jmp 0x40304f
xor eax, eax
mov ecx, eax
mov dword [esp + 0x3c0], 0xffffffff
mov esi, eax
call fcn.00428350
jmp 0x4031db
mov al, byte [ebx + 0x200]
cmp al, 0x20
je 0x40307a
cmp al, 0x21
jne 0x403163
cmp dword [ebx + 0x1ac], edi
mov eax, dword [ebx + 0x1d0]
je 0x4030e1
cmp eax, edi
jne 0x4030b8
mov eax, dword [ebx + 0x25c]
mov dword [eax + ebp + 0xe4], 0xc
mov ecx, dword [ebx + 0x25c]
mov dword [ecx + ebp + 0xe8], 0xffffffe0
mov eax, 0x12c
jmp 0x403135
mov edx, dword [ebx + 0x25c]
mov dword [edx + ebp + 0xec], 0xc
mov eax, dword [ebx + 0x25c]
mov dword [eax + ebp + 0xf0], 0xffffffe0
mov eax, 0x12d
jmp 0x403135
cmp eax, edi
jne 0x40310e
mov ecx, dword [ebx + 0x25c]
mov dword [ecx + ebp + 0xe4], 0xc
mov edx, dword [ebx + 0x25c]
mov dword [edx + ebp + 0xe8], 0xffffffe0
mov eax, 0x12b
jmp 0x403135
mov eax, dword [ebx + 0x25c]
mov dword [eax + ebp + 0xec], 0xc
mov ecx, dword [ebx + 0x25c]
mov dword [ecx + ebp + 0xf0], 0xffffffe0
mov eax, 0x12e
cmp eax, 0xfa0
mov edx, dword [ebx + 0x25c]
mov dword [edx + ebp + 0xf4], edi
mov ecx, dword [ebx + 0x25c]
mov dword [ecx + ebp + 0xf8], edi
mov edx, dword [ebx + 0x25c]
mov dword [edx + ebp + 0xfc], edi
jne 0x403188
push 0x58
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x3c0], edi
je 0x4031cc
push 0x50
push edi
mov ecx, eax
call fcn.0042e060
jmp 0x4031ce
mov ecx, dword [0x47ac04]
push 0x2000
push edi
push edi
movzx eax, ax
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
push 0x58
mov edi, eax
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c0], 1
je 0x4031cc
push 0x42
push edi
mov ecx, eax
call fcn.0042e060
jmp 0x4031ce
xor eax, eax
mov dword [esp + 0x3c0], 0xffffffff
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x403225
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push 0x58
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c0], 5
je 0x403216
push 0x42
push 1
push 1
mov ecx, eax
call fcn.0042d000
jmp 0x403218
xor eax, eax
mov dword [esp + 0x3c0], 0xffffffff
mov esi, eax
mov al, byte [ebx + 0x200]
xor ebp, ebp
cmp al, 0x21
je 0x403239
cmp al, 0x20
jne 0x4033c4
mov eax, dword [ebx + 0x1d0]
test eax, eax
jne 0x40330e
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x25c]
mov dword [ebx + 0x1c0], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1bc], ecx
mov ecx, dword [edx + eax + 0xf4]
test ecx, ecx
je 0x403306
push 0x58
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c0], 6
je 0x4032b2
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x25c]
push 0x42
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx + 0xf4]
push edx
mov ecx, eax
call fcn.0042d000
mov edi, eax
jmp 0x4032b4
xor edi, edi
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + 0x25c]
mov edx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
push 0
push 0
push eax
mov eax, dword [ecx + edx + 0xf4]
push eax
push 0
push 0
mov ecx, edi
mov dword [esp + 0x3e0], 0xffffffff
call fcn.00427b40
push eax
mov ecx, esi
call fcn.0042e770
mov ecx, dword [esi + 0x3c]
mov dword [edi + 0x3c], ecx
mov edx, dword [esi + 0x44]
mov dword [edi + 0x44], edx
mov eax, dword [esi + 0x40]
mov ebp, esi
mov dword [edi + 0x40], eax
mov esi, edi
mov ecx, dword [esi + 0xc]
jmp 0x4033be
mov edx, dword [esi + 0x10]
mov ecx, dword [ebx + 0x25c]
mov dword [ebx + 0x1c0], edx
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x1bc], eax
mov eax, dword [ecx + edx + 0xf4]
test eax, eax
je 0x4033bb
push 0x58
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c0], 7
je 0x403379
mov ecx, dword [ebx + 0x25c]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx + 0xf4]
mov edx, dword [esi + 0xc]
push 0x42
push ecx
push edx
mov ecx, eax
call fcn.0042d000
mov edi, eax
jmp 0x40337b
xor edi, edi
mov eax, dword [ebx + 0x25c]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx + 0xf4]
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
push 0
push 0
push edx
push eax
push 0
push 0
mov ecx, edi
mov dword [esp + 0x3e0], 0xffffffff
call fcn.00427b40
push eax
mov ecx, esi
call fcn.0042e770
mov ebp, esi
mov esi, edi
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0x1bc], ecx
push 0x8c
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c0], 8
je 0x4033f9
mov edx, dword [ebx + 0x25c]
push esi
add edx, dword [esp + 0x18]
push edx
mov ecx, eax
call fcn.00433bc0
jmp 0x4033fb
xor eax, eax
mov ecx, dword [esp + 0x3d0]
mov edx, dword [esp + 0x3cc]
push ecx
push ebp
push eax
push edx
push ebx
mov dword [esp + 0x3d4], 0xffffffff
mov edi, eax
call fcn.004020a0
add esp, 0x14
test ebp, ebp
je 0x40348f
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
jmp 0x40348f
push 0x8c
call fcn.00444aad
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x3c0], 9
je 0x40346b
mov ecx, dword [ebx + 0x25c]
mov edx, dword [ebp + ecx + 0x44]
add ebp, ecx
push 1
push edx
push ebp
mov ecx, eax
call fcn.00433c60
jmp 0x40346d
xor eax, eax
mov ecx, dword [esp + 0x3d0]
push ecx
push 0
push eax
push esi
push ebx
mov dword [esp + 0x3d4], 0xffffffff
mov edi, eax
call fcn.004020a0
add esp, 0x14
mov ecx, dword [esp + 0x3cc]
mov eax, ebx
call fcn.00402600
push eax
mov ecx, edi
call fcn.00435190
mov eax, edi
mov ecx, dword [esp + 0x3b8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3a8]
pop ebx
call fcn.00444c27
add esp, 0x3b4
ret