Function at 0x410080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5078ce
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x5503dc]
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 dword [ebp - 0x160], ecx
cmp byte [0x57b090], 0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x164], eax
je 0x4100ee
mov al, 1
jmp 0x4109c3
lea ecx, [ebp - 0x158]
mov byte [0x57b090], 0
call fcn.0040a320
mov esi, eax
cmp esi, 0x57df48
je 0x410141
mov ecx, 0x57df48
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57df48], ecx
mov ecx, dword [esi + 4]
mov dword [0x57df4c], ecx
mov eax, dword [esi + 8]
mov dword [0x57df50], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x158]
call fcn.004126d0
mov edx, edi
lea ecx, [ebp - 0x158]
call fcn.0040a320
mov esi, eax
cmp esi, 0x57d29c
je 0x41019a
mov ecx, 0x57d29c
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57d29c], ecx
mov ecx, dword [esi + 4]
mov dword [0x57d2a0], ecx
mov eax, dword [esi + 8]
mov dword [0x57d2a4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x158]
call fcn.004126d0
mov edx, ebx
lea ecx, [ebp - 0x158]
call fcn.0040a320
mov esi, eax
cmp esi, 0x57df54
je 0x4101f3
mov ecx, 0x57df54
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57df54], ecx
mov ecx, dword [esi + 4]
mov dword [0x57df58], ecx
mov eax, dword [esi + 8]
mov dword [0x57df5c], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x158]
call fcn.004126d0
mov edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x158]
call fcn.0040a320
mov esi, eax
cmp esi, 0x57d290
je 0x410250
mov ecx, 0x57d290
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57d290], ecx
mov ecx, dword [esi + 4]
mov dword [0x57d294], ecx
mov eax, dword [esi + 8]
mov dword [0x57d298], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x158]
call fcn.004126d0
mov edx, dword [ebp - 0x148]
lea ecx, [ebp - 0x158]
call fcn.0040a320
mov esi, eax
cmp esi, 0x57df3c
je 0x4102ad
mov ecx, 0x57df3c
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57df3c], ecx
mov ecx, dword [esi + 4]
mov dword [0x57df40], ecx
mov eax, dword [esi + 8]
mov dword [0x57df44], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x158]
call fcn.004126d0
call fcn.0040ff80
mov edx, dword [ebp - 0x160]
mov eax, 0x57d2c0
xor ecx, ecx
nop word [eax + eax]
cmp dword [eax], edx
je 0x41060e
add ecx, 0xf4
add eax, 0xf4
cmp ecx, 0xb70
jb 0x4102d0
cmp byte [0x57b090], 0
jne 0x410620
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004debe0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x410620
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x144]
call fcn.00409eb0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x15c], eax
xor esi, esi
mov eax, 0x57d2dc
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x14c], eax
nop dword [eax]
nop dword [eax + eax]
mov edx, eax
lea ecx, [ebp - 0x12c]
call fcn.0040dfd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x4104c1
push eax
push 0
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x144]
call fcn.004122b0
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
lea eax, [ecx + 0x10]
jb 0x4103b1
mov ecx, dword [ecx]
mov edi, dword [ebp - 0x118]
lea esi, [ebp - 0x12c]
mov eax, dword [eax]
cmp edi, 0x10
mov ebx, dword [ebp - 0x12c]
mov edx, eax
cmovae esi, ebx
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x11c], eax
cmovb edx, dword [ebp - 0x11c]
test edx, edx
je 0x410446
sub edx, 4
jb 0x410401
nop dword [eax]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x410406
add esi, 4
add ecx, 4
sub edx, 4
jae 0x4103f0
cmp edx, 0xfffffffc
je 0x41043a
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x410433
cmp edx, 0xfffffffd
je 0x41043a
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x410433
cmp edx, 0xfffffffe
je 0x41043a
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x410433
cmp edx, 0xffffffff
je 0x41043a
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x41043a
sbb esi, esi
or esi, 1
jmp 0x41043c
xor esi, esi
test esi, esi
jne 0x410459
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x11c]
cmp eax, ecx
jbe 0x410455
or esi, 0xffffffff
jmp 0x410459
sbb esi, esi
neg esi
mov eax, dword [ebp - 0x1a0]
cmp eax, 0x10
jb 0x4104b1
mov ecx, dword [ebp - 0x1b4]
inc eax
cmp eax, 0x1000
jb 0x41049c
test cl, 0x1f
jne 0x410583
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x410583
sub ecx, eax
cmp ecx, 4
jb 0x410583
cmp ecx, 0x23
ja 0x410583
mov ecx, eax
push ecx
call fcn.00469456
mov edi, dword [ebp - 0x118]
add esp, 4
mov ebx, dword [ebp - 0x12c]
test esi, esi
je 0x410540
mov esi, dword [ebp - 0x148]
jmp 0x4104cd
mov edi, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x12c]
mov byte [ebp - 4], 0
cmp edi, 0x10
jb 0x41050f
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x410506
test bl, 0x1f
jne 0x410583
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x410583
sub ebx, eax
cmp ebx, 4
jb 0x410583
cmp ebx, 0x23
ja 0x410583
mov ebx, eax
push ebx
call fcn.00469456
add esp, 4
mov eax, dword [ebp - 0x14c]
add esi, 0xf4
inc dword [ebp - 0x15c]
add eax, 0xf4
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x14c], eax
cmp esi, 0xb70
jb 0x410370
jmp 0x4105b5
imul eax, dword [ebp - 0x15c], 0xf4
mov ecx, 0x57de48
add eax, 0x57d2c0
push eax
call fcn.004109e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
mov byte [0x57b090], 1
cmp eax, 0x10
jb 0x4105b5
mov ecx, dword [ebp - 0x12c]
inc eax
cmp eax, 0x1000
jb 0x4105ac
test cl, 0x1f
je 0x410588
call fcn.004e12d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x410594
call fcn.004e12d1
sub ecx, eax
cmp ecx, 4
jae 0x4105a0
call fcn.004e12d1
cmp ecx, 0x23
jbe 0x4105aa
call fcn.004e12d1
mov ecx, eax
push ecx
call fcn.00469456
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x410620
mov ecx, dword [ebp - 0x144]
inc eax
cmp eax, 0x1000
jb 0x410603
test cl, 0x1f
je 0x4105df
call fcn.004e12d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4105eb
call fcn.004e12d1
sub ecx, eax
cmp ecx, 4
jae 0x4105f7
call fcn.004e12d1
cmp ecx, 0x23
jbe 0x410601
call fcn.004e12d1
mov ecx, eax
push ecx
call fcn.00469456
add esp, 4
jmp 0x410620
push eax
mov ecx, 0x57de48
call fcn.004109e0
mov byte [0x57b090], 1
cmp dword [ebp - 0x160], 0xb
jne 0x4106e9
mov edx, dword [ebp - 0x164]
lea ecx, [ebp - 0x144]
call fcn.0040fc60
mov esi, eax
mov dword [ebp - 4], 2
cmp esi, 0x57de7c
je 0x4106c4
mov eax, dword [0x57de90]
cmp eax, 0x10
jb 0x41069e
mov ecx, dword [0x57de7c]
inc eax
cmp eax, 0x1000
jb 0x410695
test cl, 0x1f
je 0x410671
call fcn.004e12d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x41067d
call fcn.004e12d1
sub ecx, eax
cmp ecx, 4
jae 0x410689
call fcn.004e12d1
cmp ecx, 0x23
jbe 0x410693
call fcn.004e12d1
mov ecx, eax
push ecx
call fcn.00469456
add esp, 4
push esi
mov ecx, 0x57de7c
mov dword [0x57de90], 0xf
mov dword [0x57de8c], 0
mov byte [0x57de7c], 0
call fcn.004081c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x4106e9
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00408290
mov edx, 0x57de7c
lea ecx, [ebp - 0x19c]
call fcn.0040dfd0
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.004162d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x188]
cmp eax, 0x10
jb 0x41072b
inc eax
push 1
push eax
push dword [ebp - 0x19c]
call fcn.00405c20
add esp, 0xc
cmp byte [0x57b090], 0
je 0x4109c1
mov edx, dword [ebp - 0x168]
lea ecx, [ebp - 0x158]
call fcn.0040a320
mov esi, eax
cmp esi, 0x57d260
je 0x41078a
mov ecx, 0x57d260
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57d260], ecx
mov ecx, dword [esi + 4]
mov dword [0x57d264], ecx
mov eax, dword [esi + 8]
mov dword [0x57d268], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x158]
call fcn.004126d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x168], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4107b8
mov eax, dword [ecx]
jmp 0x4107ba
mov eax, ecx
push 0
push 0x53f3ac
mov byte [eax], 0
call fcn.00407d60
mov edx, 0x57de7c
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x19c]
call fcn.0040dfd0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push 0x53c418
push eax
push ecx
call fcn.004131d0
add esp, 0xc
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 6
call fcn.004094d0
add esp, 0x30
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x158]
call fcn.0040a320
mov esi, eax
cmp esi, 0x57de30
je 0x41085c
mov ecx, 0x57de30
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57de30], ecx
mov ecx, dword [esi + 4]
mov dword [0x57de34], ecx
mov eax, dword [esi + 8]
mov dword [0x57de38], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x158]
call fcn.004126d0
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x410885
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00408290
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
cmp eax, 0x10
jb 0x4108c5
inc eax
lea ecx, [ebp - 0x19c]
push eax
push dword [ebp - 0x19c]
call fcn.00408290
lea ecx, [ebp - 0x1b4]
call fcn.0040a130
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x4108df
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x184]
call fcn.0040d920
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x120]
call fcn.0040a320
mov esi, eax
cmp esi, 0x57df60
je 0x41093e
mov ecx, 0x57df60
call fcn.004126d0
mov ecx, dword [esi]
mov dword [0x57df60], ecx
mov ecx, dword [esi + 4]
mov dword [0x57df64], ecx
mov eax, dword [esi + 8]
mov dword [0x57df68], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x120]
call fcn.004126d0
mov eax, dword [ebp - 0x170]
cmp eax, 0x10
jb 0x410967
inc eax
lea ecx, [ebp - 0x184]
push eax
push dword [ebp - 0x184]
call fcn.00408290
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], 0
mov byte [ebp - 0x184], 0
cmp eax, 0x10
jb 0x4109a0
inc eax
lea ecx, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b4]
call fcn.00408290
push 0x57b098
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0x4110a0
call fcn.004ed03f
add esp, 0xc
mov dword [0x57b094], eax
xor al, al
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.004c9018
mov esp, ebp
pop ebp
ret