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

Disassembly:
push 0xffffffffffffffff
push 0x1016e458
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x101b01e4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov ebp, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, ecx
lea edi, [esi + 0x1fc4]
push edi
mov dword [esp + 0x1c], eax
call ebp
mov bl, byte [esi + 0x1fdc]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test bl, bl
jne 0x1005072c
lea edi, [esi + 0x1fc4]
push edi
call ebp
push edi
mov byte [esi + 0x1fdc], 1
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esi + 0x220c]
test ecx, ecx
je 0x1005023e
push 0
call fcn.100e1b62
mov eax, dword [esi + 0x220c]
test eax, eax
je 0x1005025f
push eax
call fcn.100e47eb
mov ecx, eax
call fcn.100e42ea
mov dword [esi + 0x220c], 0
mov edi, dword [esi + 0x206c]
cmp edi, dword [esi + 0x2070]
lea ebp, [esi + 0x2068]
jbe 0x10050278
call fcn.10149775
mov ebx, dword [ebp + 8]
cmp dword [ebp + 4], ebx
jbe 0x10050285
call fcn.10149775
cmp ebp, ebp
je 0x1005028e
call fcn.10149775
cmp edi, ebx
je 0x100502c7
cmp edi, dword [ebp + 8]
jb 0x1005029c
call fcn.10149775
cmp dword [edi + 8], 0
je 0x100502b8
cmp edi, dword [ebp + 8]
jb 0x100502ac
call fcn.10149775
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
push 1
call eax
cmp edi, dword [ebp + 8]
jb 0x100502c2
call fcn.10149775
add edi, 0x18
jmp 0x10050285
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
mov dword [esp + 0x2c], edi
jbe 0x100502d8
call fcn.10149775
mov ebx, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jbe 0x100502e5
call fcn.10149775
cmp ebx, edi
je 0x10050362
mov edi, dword [ebp + 8]
mov ecx, edi
sub ecx, dword [esp + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
lea edx, [ebx + ecx*8]
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
push edx
push ebx
push edi
push eax
call fcn.1004de80
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x34]
add esp, 0x18
cmp edi, ebx
je 0x1005035f
lea ecx, [edi + 4]
mov dword [edi], 0x10187138
mov dword [ecx], 0x1018710c
call fcn.1000dbe0
add edi, 0x18
cmp edi, ebx
jne 0x10050340
mov edi, dword [esp + 0x1c]
mov dword [ebp + 8], edi
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.1004e9a0
lea ecx, [esi + 0x20b4]
call fcn.100ee318
mov dl, byte [esi + 0x1f70]
xor ebx, ebx
test dl, dl
jne 0x100503c4
lea eax, [esp + 0x1c]
push eax
lea edi, [esi + 0x207c]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.100ec2d7
mov ecx, dword [esp + 0x24]
add esp, 8
or ecx, dword [esp + 0x20]
je 0x1005045a
mov ecx, dword [esi + 0xc4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
lea eax, [esi + 0xcc]
push eax
push edi
call edx
push 0xffffffffffffffff
lea eax, [esi + 0xe8]
push ebx
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], 0
call fcn.10001ec0
push 1
push 0xffffffffffffffff
push 0x10184474
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa4], ebx
call fcn.1003a5f0
cmp eax, 0xffffffff
je 0x10050462
push 0xffffffffffffffff
add eax, 1
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x7c]
call fcn.1003afc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 1
call fcn.10001ec0
mov edi, 0x10
cmp dword [esp + 0x6c], edi
mov byte [esp + 0x98], 0
jb 0x10050467
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10149646
add esp, 4
jmp 0x10050467
push edi
call fcn.100ec22e
jmp 0x100504b8
mov edi, 0x10
cmp dword [esp + 0x84], ebx
je 0x1005049a
cmp byte [esi + 0x1fe0], 0
jne 0x1005049a
cmp dword [esp + 0x88], edi
mov eax, dword [esp + 0x74]
jae 0x1005048a
lea eax, [esp + 0x74]
mov edx, dword [esi]
push ebx
push eax
mov eax, dword [edx + 0xa4]
push 0x4b
mov ecx, esi
call eax
cmp dword [esp + 0x88], edi
mov dword [esp + 0x98], 0xffffffff
jb 0x100504bb
mov ecx, dword [esp + 0x74]
push ecx
call fcn.10149646
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, eax
sub edx, dword [esi + 0x1f6c]
mov eax, 0x10624dd3
mul edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x207c]
shr edx, 6
push ecx
mov dword [esi + 0x1f68], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.100ec2d7
add esp, 8
cmp dword [esi + 0x1f68], ebx
jne 0x10050507
mov dword [esi + 0x1f68], 1
mov edx, dword [esi + 0x1f68]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
push edx
push eax
push ecx
call fcn.1014a590
mov ebp, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea edi, [esi + 0x1fa0]
push edi
mov dword [esp + 0x1c], eax
mov dword [esi + 0x2250], eax
call ebp
mov bl, byte [esi + 0x1fb8]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test bl, bl
je 0x1005055b
mov dl, byte [esi + 0x1f70]
test dl, dl
je 0x1005055b
mov byte [esi + 0x2268], 0
jmp 0x100505ce
lea edi, [esi + 0x1fa0]
push edi
call ebp
mov bl, byte [esi + 0x1fb8]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test bl, bl
je 0x1005059a
mov al, byte [esi + 0x1f70]
test al, al
jne 0x1005059a
cmp byte [esp + 0xa4], al
jne 0x1005059a
cmp dword [esi + 0x2214], 0x16
jne 0x1005059a
mov byte [esi + 0x2268], 3
jmp 0x100505d6
lea edi, [esi + 0x1fa0]
push edi
call ebp
mov bl, byte [esi + 0x1fb8]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test bl, bl
je 0x100505c7
mov cl, byte [esi + 0x1f70]
test cl, cl
jne 0x100505c7
mov byte [esi + 0x2268], 1
jmp 0x100505ce
mov byte [esi + 0x2268], 2
mov byte [esp + 0xa4], 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esi + 0x2238], eax
lea edi, [esi + 0x2238]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push 0
mov dword [esi + 0x2254], ecx
lea ebx, [esi + 0xcc]
push ebx
lea ecx, [esi + 0x2278]
mov dword [esi + 0x2270], edx
mov dword [esi + 0x2274], eax
call fcn.10001ec0
lea edx, [esi + 0xe8]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.100e988e
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x22a8]
mov dword [esp + 0xa4], 2
call fcn.10001ec0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x98], 0xffffffff
jb 0x10050672
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10149646
add esp, 4
lea ebp, [esi + 0x1f7c]
push ebp
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov byte [esi + 0x22c4], 0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov dl, byte [esi + 0x1f94]
push ebp
mov byte [esp + 0x1b], dl
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov dx, word [esi + 0x2218]
xor eax, eax
cmp byte [esp + 0x17], al
mov ecx, 1
setne al
mov dword [esi + 0x2294], ecx
mov dword [esi + 0x2298], ecx
mov cx, word [esi + 0x2214]
mov word [esi + 0x22f8], cx
mov ecx, dword [esi + 0xd37]
mov dword [esi + 0x248c], ecx
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0x229c], eax
xor eax, eax
mov dword [esi + 0x22a0], eax
mov dword [esi + 0x22a4], eax
mov word [esi + 0x224c], ax
mov eax, dword [esi + 0x2222]
mov dword [esi + 0x2484], eax
mov eax, dword [esp + 0xa4]
push eax
mov word [esi + 0x22fa], dx
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
push ebx
push edi
call edx
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10149c5e
add esp, 0x88
ret 8