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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101808a2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
push ebx
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x78]
call fcn.100548f0
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.100548f0
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], 0x101975f4
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 0x1005aa3b
cmp ebx, esi
je 0x1005aa40
call fcn.1015828d
cmp edi, dword [esp + 0x74]
je 0x1005aca0
test ebx, ebx
jne 0x1005aa53
call fcn.1015828d
cmp edi, dword [ebx + 4]
jne 0x1005aa5d
call fcn.1015828d
lea ecx, [edi + 0x28]
call fcn.1005c630
test al, al
je 0x1005ab8c
cmp edi, dword [ebx + 4]
jne 0x1005aa77
call fcn.1015828d
lea ecx, [edi + 0x28]
call fcn.100dc790
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.100542c0
lea edx, [esp + 0x78]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x7c]
cmp eax, edx
mov dword [esp + 0x88], eax
je 0x1005aacc
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jl 0x1005aacc
jg 0x1005aac3
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x1005aacc
lea eax, [esp + 0x84]
jmp 0x1005aadc
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 0x1005aaf5
lea edx, [esp + 0x78]
cmp ecx, edx
je 0x1005aafa
call fcn.1015828d
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x64], eax
je 0x1005ab0e
add dword [esp + 0x14], 1
adc dword [esp + 0x18], 0
cmp edi, dword [ebx + 4]
jne 0x1005ab18
call fcn.1015828d
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.10055250
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x1e8], 3
call fcn.100588a0
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e0], 2
call fcn.100dc9c0
lea ecx, [esp + 0x1c]
call fcn.10053bd0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x1005aa33
cmp edi, dword [ebx + 4]
jne 0x1005ab96
call fcn.1015828d
lea ecx, [edi + 0x28]
call fcn.100dc870
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.100542c0
mov edx, dword [esp + 0x58]
cmp eax, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
je 0x1005abde
cmp ebx, dword [eax + 0x14]
jl 0x1005abde
jg 0x1005abd8
cmp esi, dword [eax + 0x10]
jb 0x1005abde
lea eax, [esp + 0x34]
jmp 0x1005abee
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 0x1005ac0a
lea edx, [esp + 0x54]
cmp ecx, edx
je 0x1005ac0f
call fcn.1015828d
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0x64], eax
je 0x1005ac22
add esi, 1
adc ebx, 0
mov ecx, dword [esp + 0x1c]
cmp edi, dword [ecx + 4]
jne 0x1005ac30
call fcn.1015828d
add edi, 0x28
push edi
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], ebx
call fcn.10055250
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1e8], 4
call fcn.100588a0
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e0], 2
call fcn.100dc9c0
mov esi, dword [esp + 0x90]
lea ecx, [esp + 0x1c]
call fcn.10053bd0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x1005aa33
xor ebx, ebx
push ebx
call fcn.1015812a
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 0x1005acfc
lea edx, [esp + 0x78]
cmp esi, edx
je 0x1005ad01
call fcn.1015828d
cmp edi, dword [esp + 0xd0]
je 0x1005b0d6
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
call fcn.10054500
cmp dword [esp + 0x68], 0
jne 0x1005ad2b
call fcn.1015828d
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
cmp ebx, dword [eax + 4]
jne 0x1005ad3d
call fcn.1015828d
lea ecx, [ebx + 0x18]
call fcn.1005c5c0
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
call fcn.10054500
cmp dword [esp + 0x70], 0
jne 0x1005ad66
call fcn.1015828d
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp ebx, dword [ecx + 4]
jne 0x1005ad78
call fcn.1015828d
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.10054500
cmp dword [esp + 0x14], 0
jne 0x1005ad95
call fcn.1015828d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp edx, dword [eax + 4]
jne 0x1005ada7
call fcn.1015828d
lea ecx, [ebx + 0x18]
call fcn.100dc870
push 0
push 0x64
push edx
push eax
call fcn.10159ae0
mov ecx, dword [esp + 0x18]
add ecx, 0x18
mov ebx, eax
mov dword [esp + 0xd8], edx
call fcn.100dc790
mov ecx, dword [esp + 0xd8]
push edx
push eax
push ecx
push ebx
call fcn.1015a9c0
mov edx, dword [esp + 0x90]
add edx, 0xfffd5d00
cmp dword [esp + 0x1c], edx
mov byte [esp + 0x13], al
jle 0x1005af27
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
call fcn.10054500
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x1005ae18
call fcn.1015828d
mov eax, dword [esp + 0x38]
cmp eax, dword [ebx + 4]
jne 0x1005ae26
call fcn.1015828d
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.10054500
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x1005ae44
call fcn.1015828d
mov ecx, dword [esp + 0x48]
cmp ecx, dword [ebx + 4]
jne 0x1005ae52
call fcn.1015828d
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
call fcn.10054500
mov esi, dword [esp + 0x84]
test esi, esi
jne 0x1005ae7c
call fcn.1015828d
mov ebx, dword [esp + 0x88]
cmp ebx, dword [esi + 4]
jne 0x1005ae8d
call fcn.1015828d
mov ecx, dword [esp + 0x48]
add ecx, 0x18
call fcn.100dc790
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.100dc760
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.1005c6b0
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 0x1005b041
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
call fcn.10054500
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jne 0x1005af45
call fcn.1015828d
mov eax, dword [esp + 0x40]
cmp eax, dword [ebx + 4]
jne 0x1005af53
call fcn.1015828d
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
call fcn.10054500
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jne 0x1005af71
call fcn.1015828d
mov ecx, dword [esp + 0x50]
cmp ecx, dword [ebx + 4]
jne 0x1005af7f
call fcn.1015828d
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
call fcn.10054500
mov esi, dword [esp + 0x60]
test esi, esi
jne 0x1005af9d
call fcn.1015828d
mov ebx, dword [esp + 0x64]
cmp ebx, dword [esi + 4]
jne 0x1005afab
call fcn.1015828d
mov ecx, dword [esp + 0x50]
add ecx, 0x18
call fcn.100dc790
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.100dc760
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.1005c6b0
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.10058980
mov edi, dword [esp + 0x28]
test edi, edi
mov ebx, dword [esp + 0x2c]
jne 0x1005b091
xor esi, esi
jmp 0x1005b0a6
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.10053a70
add eax, esi
cmp eax, dword [ebp + 0xc]
jae 0x1005b0de
lea ecx, [esp + 0xc4]
call fcn.10054500
mov edi, dword [esp + 0xc8]
mov esi, dword [esp + 0xc4]
xor ebx, ebx
jmp 0x1005acf0
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, ebx
mov dword [esp + 0x1c], ebx
jbe 0x1005b0eb
call fcn.1015828d
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jbe 0x1005b0fe
call fcn.1015828d
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
lea ebx, [esp + 0x24]
jbe 0x1005b112
call fcn.1015828d
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.10056190
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
cmp ebx, ecx
mov edi, ecx
jbe 0x1005b15b
call fcn.1015828d
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
cmp ebx, ecx
jbe 0x1005b15b
call fcn.1015828d
mov ecx, dword [esp + 0x2c]
cmp ebx, edi
je 0x1005b1a8
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.10054000
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 0x1005b1e0
lea eax, [esp + 0x54]
cmp esi, eax
je 0x1005b1e5
call fcn.1015828d
cmp edi, dword [esp + 0xd8]
je 0x1005b5b6
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
call fcn.10054500
cmp dword [esp + 0x3c], 0
jne 0x1005b20f
call fcn.1015828d
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp ebx, dword [eax + 4]
jne 0x1005b221
call fcn.1015828d
lea ecx, [ebx + 0x18]
call fcn.1005c5c0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
call fcn.10054500
cmp dword [esp + 0x4c], 0
jne 0x1005b24a
call fcn.1015828d
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
cmp ebx, dword [ecx + 4]
jne 0x1005b25c
call fcn.1015828d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.10054500
cmp dword [esp + 0x1c], 0
jne 0x1005b279
call fcn.1015828d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 4]
jne 0x1005b28b
call fcn.1015828d
lea ecx, [ebx + 0x18]
call fcn.100dc870
push 0
push 0x64
push edx
push eax
call fcn.10159ae0
mov ecx, dword [esp + 0x20]
add ecx, 0x18
mov ebx, eax
mov dword [esp + 0xd0], edx
call fcn.100dc790
mov ecx, dword [esp + 0xd0]
push edx
push eax
push ecx
push ebx
call fcn.1015a9c0
mov edx, dword [esp + 0x90]
add edx, 0xfffd5d00
cmp dword [esp + 0x14], edx
mov byte [esp + 0x13], al
jle 0x1005b3fc
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.10054500
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x1005b2fc
call fcn.1015828d
mov eax, dword [esp + 0x48]
cmp eax, dword [ebx + 4]
jne 0x1005b30a
call fcn.1015828d
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
call fcn.10054500
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x1005b328
call fcn.1015828d
mov ecx, dword [esp + 0x38]
cmp ecx, dword [ebx + 4]
jne 0x1005b336
call fcn.1015828d
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
call fcn.10054500
mov esi, dword [esp + 0x60]
test esi, esi
jne 0x1005b354
call fcn.1015828d
mov ebx, dword [esp + 0x64]
cmp ebx, dword [esi + 4]
jne 0x1005b362
call fcn.1015828d
mov ecx, dword [esp + 0x38]
add ecx, 0x18
call fcn.100dc790
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.100dc760
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.1005c6b0
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 0x1005b525
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
call fcn.10054500
mov ebx, dword [esp + 0x68]
test ebx, ebx
jne 0x1005b41a
call fcn.1015828d
mov eax, dword [esp + 0x6c]
cmp eax, dword [ebx + 4]
jne 0x1005b428
call fcn.1015828d
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
call fcn.10054500
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x1005b446
call fcn.1015828d
mov ecx, dword [esp + 0x74]
cmp ecx, dword [ebx + 4]
jne 0x1005b454
call fcn.1015828d
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
call fcn.10054500
mov esi, dword [esp + 0x84]
test esi, esi
jne 0x1005b47e
call fcn.1015828d
mov ebx, dword [esp + 0x88]
cmp ebx, dword [esi + 4]
jne 0x1005b48f
call fcn.1015828d
mov ecx, dword [esp + 0x74]
add ecx, 0x18
call fcn.100dc790
mov edi, edx
lea edx, [esp + 0x128]
push edx
lea ecx, [ebx + 0x18]
mov esi, eax
call fcn.100dc760
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.1005c6b0
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.10058980
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1005b571
xor esi, esi
jmp 0x1005b588
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.10053a70
add eax, esi
cmp eax, dword [ebp + 0xc]
jae 0x1005b5b6
lea ecx, [esp + 0xc4]
call fcn.10054500
mov edi, dword [esp + 0xc8]
mov esi, dword [esp + 0xc4]
jmp 0x1005b1d4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jbe 0x1005b5d3
call fcn.1015828d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x1005b5e0
call fcn.1015828d
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
lea ebx, [esp + 0x24]
jbe 0x1005b5f4
call fcn.1015828d
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.10056190
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
jne 0x1005b622
xor esi, esi
jmp 0x1005b638
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 0x1005b649
push eax
call fcn.10157f3b
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.10057190
mov edx, dword [esp + 0x58]
push edx
call fcn.10157f3b
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.10057190
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.10157f3b
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