Function at 0x40368f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov esi, dword [ecx]
mov ebx, dword [ebp + 8]
mov edi, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], esi
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x403cad
cmp dword [ebp + 0xc], 0x3b9aca00
jne 0x4036cc
call fcn.0051f1a0
jmp 0x4036b1
call fcn.005213a0
mov esi, edx
cmp eax, edi
mov edx, edx
mov dword [esp], ecx
sbb edx, ebx
jb 0x4036fa
mov ecx, eax
mov edx, esi
xor ecx, edi
xor edx, ebx
or edx, ecx
jne 0x403cc0
mov ecx, dword [esp]
cmp ecx, dword [ebp + 0xc]
jae 0x403cc0
mov edx, ebx
mov ecx, edi
push dword [esp]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00521530
add esp, 0x10
mov edi, eax
mov esi, edx
mov ebx, ecx
cmp ecx, 0x3b9aca00
mov eax, 0
cmove ebx, eax
cmove esi, eax
cmove edi, eax
call fcn.0051f2d0
test eax, eax
je 0x403ce5
lock dec byte [eax + 0x18]
je 0x403c8d
mov ecx, eax
add ecx, 0x18
mov dword [esp + 0x38], ecx
mov ecx, dword [0x706140]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4037c8
mov eax, esi
mov esi, 0x3e8
mov dword [esp], ecx
mul esi
mov ecx, eax
mov eax, edi
seto byte [esp + 4]
mul esi
mov esi, edx
mov edi, eax
add esi, ecx
setb al
or al, byte [esp + 4]
jne 0x4037aa
mov eax, ebx
xor edx, edx
mov ecx, 0xf4240
div ecx
add edi, eax
adc esi, 0
jb 0x4037aa
xor eax, eax
test edx, edx
setne al
add edi, eax
mov eax, 0
adc esi, 0
setb cl
neg esi
sbb eax, eax
test cl, cl
je 0x40380f
xor eax, eax
dec eax
mov ecx, dword [esp]
push eax
push 1
push 0x69b730
mov esi, dword [esp + 0x44]
push esi
call ecx
xor eax, eax
xchg byte [esi], al
jmp 0x403c89
mov eax, dword [0x592058]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x403824
or dword [esp + 0x48], 0xffffffff
mov eax, dword [0x592064]
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x54]
push ecx
call eax
test eax, eax
jne 0x403cfa
mov ecx, dword [esp + 0x48]
xor eax, eax
dec eax
lock cmpxchg dword [0x592058], ecx
jne 0x403813
mov dword [esp + 0x28], ecx
jmp 0x403824
or eax, edi
jmp 0x4037ad
push ecx
mov dword [esp + 4], eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp]
mov dword [esp + 0x28], eax
mov eax, edi
mov ecx, 0x3b9aca00
mul ecx
mov ecx, edx
mov edi, eax
mov eax, esi
mov edx, 0x3b9aca00
mul edx
mov esi, eax
add esi, ecx
adc edx, 0
add edi, ebx
adc esi, 0
adc edx, 0
setb al
movzx ecx, al
push 0xffffffffffffff9c
pop eax
cmp eax, edi
mov eax, 0xffffffff
sbb eax, esi
push 0x31
pop eax
sbb eax, edx
mov eax, 0
sbb eax, ecx
jb 0x403c1d
mov dword [esp + 0x50], edi
add edi, 0x63
mov dword [esp + 0x24], esi
mov ebx, esi
mov esi, 0
mov dword [esp + 0x54], edx
mov eax, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp], edi
mov edi, edx
adc ebx, esi
mov edx, dword [esp]
adc edi, esi
mov ecx, ebx
adc eax, esi
mov dword [esp + 8], edi
or ecx, eax
mov dword [esp + 0x10], eax
or edx, edi
or edx, ecx
sete byte [esp + 4]
bsr edx, edi
bsr esi, eax
xor edx, 0x1f
xor esi, 0x1f
add edx, 0x20
test eax, eax
cmovne edx, esi
bsr esi, dword [esp]
bsr ecx, ebx
xor ecx, 0x1f
xor esi, 0x1f
add esi, 0x20
test ebx, ebx
cmovne esi, ecx
mov ecx, edi
add esi, 0x40
or ecx, eax
cmovne esi, edx
push 0x79
pop edx
sub edx, esi
mov edi, 0
mov eax, 0
mov esi, 0
sbb edi, edi
sbb eax, eax
sbb esi, esi
push 0x7f
pop ecx
cmp ecx, edx
mov ecx, 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
sbb ecx, edi
mov ecx, 0
sbb ecx, eax
mov ecx, 0
mov eax, esi
sbb ecx, esi
mov esi, 0
setb cl
or cl, byte [esp + 4]
mov ecx, ebx
mov ebx, dword [esp]
cmovne ecx, esi
cmovne ebx, esi
mov dword [esp + 4], ecx
jne 0x403c0d
mov ecx, edx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov edx, edi
xor ecx, 0x7f
or edx, eax
or ecx, dword [esp + 0x18]
or edx, ecx
je 0x403c11
mov dword [esp + 0x20], eax
mov eax, dword [esp]
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x10]
and dword [esp + 0xa0], 0
and dword [esp + 0x9c], 0
and dword [esp + 0x98], 0
and dword [esp + 0x94], 0
mov dword [esp + 0xb0], ecx
mov ebx, dword [esp + 0x14]
mov ecx, ebx
xor cl, 0x7f
mov ch, cl
shr cl, 3
and cl, 0xf
and ch, 7
neg cl
movsx edx, cl
mov cl, ch
mov eax, dword [esp + edx + 0xac]
mov esi, dword [esp + edx + 0xb0]
shld esi, eax, cl
shl eax, cl
not cl
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + edx + 0xa8]
mov esi, dword [esp + edx + 0xa4]
mov edx, eax
shr edx, 1
shr edx, cl
mov cl, ch
shld eax, esi, cl
shl esi, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
xor eax, eax
add ebx, 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
adc edi, eax
adc ebx, eax
adc ecx, eax
jae 0x403a33
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
jmp 0x403bf3
mov eax, dword [esp]
or dword [esp + 0x30], edx
mov esi, edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
and dword [esp + 0x90], 0
and dword [esp + 0x8c], 0
and dword [esp + 0x88], 0
and dword [esp + 0x84], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
mov ch, al
shr al, 3
and al, 0xf
and ch, 7
movzx edx, al
mov cl, ch
mov eax, dword [esp + edx + 0x7c]
mov edi, dword [esp + edx + 0x80]
mov ebx, eax
add eax, eax
shrd ebx, edi, cl
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + edx + 0x78]
mov dword [esp + 0x40], esi
mov esi, ebx
shr esi, cl
not cl
shl eax, cl
or eax, esi
mov dword [esp + 0x10], eax
push 0x64
pop esi
mov eax, dword [esp + edx + 0x74]
mov cl, ch
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
shr edi, cl
shrd eax, ebx, cl
mov dword [esp + 0x3c], eax
mov eax, esi
add eax, 0xffffffff
mov dword [esp + 0x68], eax
mov eax, 0
adc eax, 0xffffffff
mov dword [esp + 0x64], eax
mov eax, 0
adc eax, 0xffffffff
mov dword [esp + 0x60], eax
mov eax, 0
adc eax, 0xffffffff
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
shld edi, esi, 1
shld esi, edx, 1
shld edx, ebx, 1
shld ebx, eax, 1
shld eax, ecx, 1
mov dword [esp], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
or eax, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 4]
shld ecx, eax, 1
or ecx, edi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x34]
shld eax, ecx, 1
add ecx, ecx
or ecx, dword [esp + 8]
or eax, edi
cmp dword [esp + 0x68], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x64]
sbb ecx, edx
mov ecx, dword [esp + 0x60]
sbb ecx, esi
mov ecx, dword [esp + 0x5c]
sbb ecx, dword [esp]
sar ecx, 0x1f
mov eax, ecx
and eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
push 0x64
pop edi
and ecx, edi
mov edi, dword [esp + 0x20]
sub ebx, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x14]
sbb edx, 0
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
sbb esi, 0
sbb dword [esp], 0
mov dword [esp + 0x44], esi
add ebx, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp + 0x14], ebx
adc edx, 0xffffffff
mov dword [esp + 0x40], ecx
adc edi, 0xffffffff
or ebx, edx
mov dword [esp + 0x18], edx
or ecx, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp]
or ebx, ecx
jne 0x403b15
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 4]
shld eax, ebx, 1
add ebx, ebx
or eax, dword [esp + 0xc]
or ebx, dword [esp + 8]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
neg ebx
mov eax, 0
sbb eax, dword [esp + 4]
cmp edi, 0xffffff9d
sbb esi, 0xffffffff
sbb edx, 0x31
sbb ecx, 0
mov ecx, 0x80000000
cmovae eax, ecx
mov dword [esp + 0xbc], eax
mov eax, 0
cmovae ebx, eax
mov dword [esp + 0xb8], ebx
mov eax, dword [0x59206c]
lea ecx, [esp + 0xb8]
push ecx
push 0
mov esi, dword [esp + 0x40]
push esi
mov edi, dword [esp + 0x34]
push edi
call eax
test eax, eax
mov eax, 0
xchg byte [esi], al
je 0x403c89
cmp al, 1
jne 0x403c89
mov eax, dword [0x59206c]
push 0
push 0
push esi
push edi
call eax
mov eax, dword [esp + 0x1c]
lock dec dword [eax]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
jne 0x4036b1
mov ecx, eax
call fcn.0051f030
jmp 0x4036b1
lea ecx, [eax - 1]
cmp ecx, 2
jb 0x403cb8
push 3
pop eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x58]
xor edx, edx
inc edx
mov ecx, dword [eax]
xor eax, eax
lock cmpxchg dword [ecx + 0xc], edx
sete bl
mov ecx, eax
cmp eax, 3
push 3
pop eax
cmovb eax, ecx
test bl, bl
cmovne eax, edx
jmp 0x403cb8
push 0x5e
pop edx
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
push 0x69c3b4
call fcn.004408d0
pop eax
jmp 0x403d57
xor edx, edx
lea ecx, [esp + 0xb4]
lea esi, [esp + 0xd4]
mov dword [esi], ecx
mov dword [ecx], eax
lea ecx, [esp + 0xb8]
inc edx
mov dword [esi + 4], fcn.00445500
mov dword [ecx], str.Unable_to_create_keyed_event_handle:_error
mov dword [ecx + 4], edx
and dword [ecx + 0x10], 0
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov edx, 0x69e000
call fcn.00439fc0
jmp 0x403d57
ud2