Function at 0x10056800
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10182ae2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
push ebx
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x78]
call fcn.100506a0
mov dword [esp + 0x7c], eax
mov byte [eax + 0xa9], 1
mov eax, dword [esp + 0x7c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [eax], eax
mov eax, dword [esp + 0x7c]
xor edi, edi
mov dword [eax + 8], eax
mov dword [esp + 0x80], edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x1e0], edi
call fcn.100506a0
mov dword [esp + 0x58], eax
mov byte [eax + 0xa9], 1
mov eax, dword [esp + 0x58]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x58]
mov dword [eax], eax
mov eax, dword [esp + 0x58]
mov dword [eax + 8], eax
mov dword [esp + 0x5c], edi
lea eax, [esi + 8]
mov dword [esp + 0x124], eax
add eax, 4
push eax
mov dword [esp + 0x124], 0x10199614
mov dword [esp + 0x90], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x28]
mov edi, dword [eax]
add esi, 0x24
mov ebx, esi
mov byte [esp + 0x1e0], 2
mov dword [esp + 0x90], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x74], eax
test ebx, ebx
je 0x100568eb
cmp ebx, esi
je 0x100568f0
call fcn.1015988d
cmp edi, dword [esp + 0x74]
je 0x10056b50
test ebx, ebx
jne 0x10056903
call fcn.1015988d
cmp edi, dword [ebx + 4]
jne 0x1005690d
call fcn.1015988d
lea ecx, [edi + 0x28]
call fcn.100584f0
test al, al
je 0x10056a3c
cmp edi, dword [ebx + 4]
jne 0x10056927
call fcn.1015988d
lea ecx, [edi + 0x28]
call fcn.100d7a80
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.10050080
lea edx, [esp + 0x78]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x7c]
cmp eax, edx
mov dword [esp + 0x88], eax
je 0x1005697c
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jl 0x1005697c
jg 0x10056973
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x1005697c
lea eax, [esp + 0x84]
jmp 0x1005698c
lea eax, [esp + 0x78]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea eax, [esp + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], edx
je 0x100569a5
lea edx, [esp + 0x78]
cmp ecx, edx
je 0x100569aa
call fcn.1015988d
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x64], eax
je 0x100569be
add dword [esp + 0x14], 1
adc dword [esp + 0x18], 0
cmp edi, dword [ebx + 4]
jne 0x100569c8
call fcn.1015988d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x13c], ecx
add edi, 0x28
push edi
lea ecx, [esp + 0x148]
mov dword [esp + 0x144], edx
call fcn.10050fe0
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x1e8], 3
call fcn.10054750
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e0], 2
call fcn.10058600
lea ecx, [esp + 0x1c]
call fcn.1004fa20
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x100568e3
cmp edi, dword [ebx + 4]
jne 0x10056a46
call fcn.1015988d
lea ecx, [edi + 0x28]
call fcn.10058550
mov ebx, edx
lea edx, [esp + 0x4c]
mov esi, eax
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
call fcn.10050080
mov edx, dword [esp + 0x58]
cmp eax, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
je 0x10056a8e
cmp ebx, dword [eax + 0x14]
jl 0x10056a8e
jg 0x10056a88
cmp esi, dword [eax + 0x10]
jb 0x10056a8e
lea eax, [esp + 0x34]
jmp 0x10056a9e
lea eax, [esp + 0x54]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x44]
mov ecx, dword [eax]
test ecx, ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0xd0], edx
je 0x10056aba
lea edx, [esp + 0x54]
cmp ecx, edx
je 0x10056abf
call fcn.1015988d
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0x64], eax
je 0x10056ad2
add esi, 1
adc ebx, 0
mov ecx, dword [esp + 0x1c]
cmp edi, dword [ecx + 4]
jne 0x10056ae0
call fcn.1015988d
add edi, 0x28
push edi
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], ebx
call fcn.10050fe0
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1e8], 4
call fcn.10054750
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e0], 2
call fcn.10058600
mov esi, dword [esp + 0x90]
lea ecx, [esp + 0x1c]
call fcn.1004fa20
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x100568e3
xor ebx, ebx
push ebx
call fcn.1015972a
add esp, 4
mov dword [esp + 0x90], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x7c]
mov ecx, dword [edi]
lea esi, [esp + 0x78]
mov byte [esp + 0x1e0], 5
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xd0], ecx
lea esp, [esp]
cmp esi, ebx
je 0x10056bac
lea edx, [esp + 0x78]
cmp esi, edx
je 0x10056bb1
call fcn.1015988d
cmp edi, dword [esp + 0xd0]
je 0x10056f86
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
call fcn.10050310
cmp dword [esp + 0x68], 0
jne 0x10056bdb
call fcn.1015988d
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
cmp ebx, dword [eax + 4]
jne 0x10056bed
call fcn.1015988d
lea ecx, [ebx + 0x18]
call fcn.100584a0
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
call fcn.10050310
cmp dword [esp + 0x70], 0
jne 0x10056c16
call fcn.1015988d
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp ebx, dword [ecx + 4]
jne 0x10056c28
call fcn.1015988d
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.10050310
cmp dword [esp + 0x14], 0
jne 0x10056c45
call fcn.1015988d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp edx, dword [eax + 4]
jne 0x10056c57
call fcn.1015988d
lea ecx, [ebx + 0x18]
call fcn.10058550
push 0
push 0x64
push edx
push eax
call fcn.1015a7a0
mov ecx, dword [esp + 0x18]
add ecx, 0x18
mov ebx, eax
mov dword [esp + 0xd8], edx
call fcn.100d7a80
mov ecx, dword [esp + 0xd8]
push edx
push eax
push ecx
push ebx
call fcn.1015bb60
mov edx, dword [esp + 0x90]
add edx, 0xfffd5d00
cmp dword [esp + 0x1c], edx
mov byte [esp + 0x13], al
jle 0x10056dd7
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
call fcn.10050310
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x10056cc8
call fcn.1015988d
mov eax, dword [esp + 0x38]
cmp eax, dword [ebx + 4]
jne 0x10056cd6
call fcn.1015988d
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.10050310
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x10056cf4
call fcn.1015988d
mov ecx, dword [esp + 0x48]
cmp ecx, dword [ebx + 4]
jne 0x10056d02
call fcn.1015988d
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
call fcn.10050310
mov esi, dword [esp + 0x84]
test esi, esi
jne 0x10056d2c
call fcn.1015988d
mov ebx, dword [esp + 0x88]
cmp ebx, dword [esi + 4]
jne 0x10056d3d
call fcn.1015988d
mov ecx, dword [esp + 0x48]
add ecx, 0x18
call fcn.100d7a80
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.10058470
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0xec], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xf0], edx
mov edx, dword [eax + 0x10]
add ecx, 0x18
mov dword [esp + 0xf8], edx
call fcn.10058580
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x9b], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xa3], ecx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x9f], edx
mov edx, dword [esp + 0xf8]
mov byte [esp + 0xb3], cl
mov ecx, dword [ebp + 8]
jmp 0x10056ef1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
call fcn.10050310
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jne 0x10056df5
call fcn.1015988d
mov eax, dword [esp + 0x40]
cmp eax, dword [ebx + 4]
jne 0x10056e03
call fcn.1015988d
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
call fcn.10050310
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jne 0x10056e21
call fcn.1015988d
mov ecx, dword [esp + 0x50]
cmp ecx, dword [ebx + 4]
jne 0x10056e2f
call fcn.1015988d
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
call fcn.10050310
mov esi, dword [esp + 0x60]
test esi, esi
jne 0x10056e4d
call fcn.1015988d
mov ebx, dword [esp + 0x64]
cmp ebx, dword [esi + 4]
jne 0x10056e5b
call fcn.1015988d
mov ecx, dword [esp + 0x50]
add ecx, 0x18
call fcn.100d7a80
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.10058470
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0x108], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10c], edx
mov edx, dword [eax + 0x10]
add ecx, 0x18
mov dword [esp + 0x114], edx
call fcn.10058580
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x9b], ecx
mov ecx, dword [esp + 0x110]
mov dword [esp + 0xa3], ecx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x9f], edx
mov edx, dword [esp + 0x114]
mov byte [esp + 0xb3], cl
lea ecx, [esp + 0x24]
mov dword [esp + 0xa7], edx
mov dword [esp + 0xb4], eax
lea edx, [esp + 0x97]
xor eax, eax
push edx
mov dword [esp + 0x9b], ebx
mov dword [esp + 0xaf], esi
mov dword [esp + 0xb3], edi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
call fcn.10054830
mov edi, dword [esp + 0x28]
test edi, edi
mov ebx, dword [esp + 0x2c]
jne 0x10056f41
xor esi, esi
jmp 0x10056f56
mov ecx, ebx
sub ecx, edi
mov eax, 0x63e7063f
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov ecx, dword [ebp + 8]
call fcn.1004f8c0
add eax, esi
cmp eax, dword [ebp + 0xc]
jae 0x10056f8e
lea ecx, [esp + 0xc4]
call fcn.10050310
mov edi, dword [esp + 0xc8]
mov esi, dword [esp + 0xc4]
xor ebx, ebx
jmp 0x10056ba0
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, ebx
mov dword [esp + 0x1c], ebx
jbe 0x10056f9b
call fcn.1015988d
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jbe 0x10056fae
call fcn.1015988d
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
lea ebx, [esp + 0x24]
jbe 0x10056fc2
call fcn.1015988d
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
push edx
push ebx
push edi
push esi
mov ecx, esi
call fcn.10052120
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
cmp ebx, ecx
mov edi, ecx
jbe 0x1005700b
call fcn.1015988d
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
cmp ebx, ecx
jbe 0x1005700b
call fcn.1015988d
mov ecx, dword [esp + 0x2c]
cmp ebx, edi
je 0x10057058
sub ecx, edi
mov eax, 0x63e7063f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x8c]
imul esi, esi, 0x29
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x20]
push edx
push eax
push ebx
push ecx
push edi
add esi, ebx
call fcn.1004fe10
add esp, 0x18
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x58]
xor edx, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0xc0], edx
mov edx, dword [eax]
mov edi, eax
mov esi, ecx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xd8], edx
test esi, esi
je 0x10057090
lea eax, [esp + 0x54]
cmp esi, eax
je 0x10057095
call fcn.1015988d
cmp edi, dword [esp + 0xd8]
je 0x10057466
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
call fcn.10050310
cmp dword [esp + 0x3c], 0
jne 0x100570bf
call fcn.1015988d
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp ebx, dword [eax + 4]
jne 0x100570d1
call fcn.1015988d
lea ecx, [ebx + 0x18]
call fcn.100584a0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
call fcn.10050310
cmp dword [esp + 0x4c], 0
jne 0x100570fa
call fcn.1015988d
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
cmp ebx, dword [ecx + 4]
jne 0x1005710c
call fcn.1015988d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.10050310
cmp dword [esp + 0x1c], 0
jne 0x10057129
call fcn.1015988d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 4]
jne 0x1005713b
call fcn.1015988d
lea ecx, [ebx + 0x18]
call fcn.10058550
push 0
push 0x64
push edx
push eax
call fcn.1015a7a0
mov ecx, dword [esp + 0x20]
add ecx, 0x18
mov ebx, eax
mov dword [esp + 0xd0], edx
call fcn.100d7a80
mov ecx, dword [esp + 0xd0]
push edx
push eax
push ecx
push ebx
call fcn.1015bb60
mov edx, dword [esp + 0x90]
add edx, 0xfffd5d00
cmp dword [esp + 0x14], edx
mov byte [esp + 0x13], al
jle 0x100572ac
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.10050310
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x100571ac
call fcn.1015988d
mov eax, dword [esp + 0x48]
cmp eax, dword [ebx + 4]
jne 0x100571ba
call fcn.1015988d
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
call fcn.10050310
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x100571d8
call fcn.1015988d
mov ecx, dword [esp + 0x38]
cmp ecx, dword [ebx + 4]
jne 0x100571e6
call fcn.1015988d
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
call fcn.10050310
mov esi, dword [esp + 0x60]
test esi, esi
jne 0x10057204
call fcn.1015988d
mov ebx, dword [esp + 0x64]
cmp ebx, dword [esi + 4]
jne 0x10057212
call fcn.1015988d
mov ecx, dword [esp + 0x38]
add ecx, 0x18
call fcn.100d7a80
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.10058470
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0x108], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10c], edx
mov edx, dword [eax + 0x10]
add ecx, 0x18
mov dword [esp + 0x114], edx
call fcn.10058580
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x9b], ecx
mov ecx, dword [esp + 0x110]
mov dword [esp + 0xa3], ecx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x9f], edx
mov edx, dword [esp + 0x114]
mov byte [esp + 0xb3], cl
mov ecx, dword [ebp + 8]
jmp 0x100573d5
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
call fcn.10050310
mov ebx, dword [esp + 0x68]
test ebx, ebx
jne 0x100572ca
call fcn.1015988d
mov eax, dword [esp + 0x6c]
cmp eax, dword [ebx + 4]
jne 0x100572d8
call fcn.1015988d
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
call fcn.10050310
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x100572f6
call fcn.1015988d
mov ecx, dword [esp + 0x74]
cmp ecx, dword [ebx + 4]
jne 0x10057304
call fcn.1015988d
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
call fcn.10050310
mov esi, dword [esp + 0x84]
test esi, esi
jne 0x1005732e
call fcn.1015988d
mov ebx, dword [esp + 0x88]
cmp ebx, dword [esi + 4]
jne 0x1005733f
call fcn.1015988d
mov ecx, dword [esp + 0x74]
add ecx, 0x18
call fcn.100d7a80
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.10058470
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0xec], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xf0], edx
mov edx, dword [eax + 0x10]
add ecx, 0x18
mov dword [esp + 0xf8], edx
call fcn.10058580
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x9b], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xa3], ecx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x9f], edx
mov edx, dword [esp + 0xf8]
mov byte [esp + 0xb3], cl
lea ecx, [esp + 0x24]
mov dword [esp + 0xa7], edx
mov dword [esp + 0xb4], eax
lea edx, [esp + 0x97]
xor eax, eax
push edx
mov dword [esp + 0x9b], ebx
mov dword [esp + 0xaf], esi
mov dword [esp + 0xb3], edi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
call fcn.10054830
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10057421
xor esi, esi
jmp 0x10057438
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov eax, 0x63e7063f
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov ecx, dword [ebp + 8]
call fcn.1004f8c0
add eax, esi
cmp eax, dword [ebp + 0xc]
jae 0x10057466
lea ecx, [esp + 0xc4]
call fcn.10050310
mov edi, dword [esp + 0xc8]
mov esi, dword [esp + 0xc4]
jmp 0x10057084
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jbe 0x10057483
call fcn.1015988d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x10057490
call fcn.1015988d
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
lea ebx, [esp + 0x24]
jbe 0x100574a4
call fcn.1015988d
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
push edx
push ebx
push edi
push esi
mov ecx, esi
call fcn.10052120
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
jne 0x100574d2
xor esi, esi
jmp 0x100574e8
mov esi, dword [esi + 8]
sub esi, eax
mov eax, 0x63e7063f
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x100574f9
push eax
call fcn.10159534
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x58]
push ecx
mov edi, ecx
push edx
push edi
lea ecx, [esp + 0xe4]
push ecx
mov ecx, edi
mov byte [esp + 0x1f4], bl
call fcn.10053040
mov edx, dword [esp + 0x58]
push edx
call fcn.10159534
mov eax, dword [esp + 0x80]
add esp, 4
push eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov edx, dword [eax]
push edx
mov edi, ecx
push edi
lea eax, [esp + 0xe4]
push eax
mov dword [esp + 0x1f4], 0xffffffff
call fcn.10053040
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.10159534
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8