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

Disassembly:
push 0xffffffffffffffff
push 0x101802f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x10]
lea edi, [eax + 4]
push edi
mov dword [esp + 0x28], 0x101975f4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x2c], 0
mov dword [esp + 0x70], 0
jne 0x1005318a
push edi
jmp 0x100533b0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
add esi, 4
push ecx
mov ecx, esi
call fcn.10024a80
mov ebp, dword [esp + 0x18]
test ebp, ebp
mov edi, dword [esi + 4]
je 0x100531ad
cmp ebp, esi
je 0x100531b2
call fcn.1015828d
mov ebx, dword [esp + 0x1c]
cmp ebx, edi
jne 0x10053289
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
xor edi, edi
mov ecx, 1
mov dword [esp + 0x5c], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
lea eax, [esp + 0x50]
mov byte [esp + 0x70], cl
push eax
lea ecx, [esp + 0x30]
call fcn.10052530
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x2c]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esp + 0x44]
call fcn.10052380
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 2
mov dword [esp + 0x54], eax
call fcn.10052380
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x78], 3
call fcn.10052fa0
mov eax, dword [esp + 0x58]
cmp eax, edi
je 0x1005325e
push eax
call fcn.10157f3b
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x1005326f
push eax
call fcn.10157f3b
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x100533ab
push eax
call fcn.10157f3b
add esp, 4
jmp 0x100533ab
test ebp, ebp
jne 0x10053292
call fcn.1015828d
cmp ebx, dword [ebp + 4]
jne 0x1005329c
call fcn.1015828d
mov esi, dword [ebx + 0x14]
cmp esi, dword [ebx + 0x18]
lea edi, [ebx + 0x10]
jbe 0x100532b0
call fcn.1015828d
lea esp, [esp]
cmp ebx, dword [ebp + 4]
jne 0x100532ba
call fcn.1015828d
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x100532c7
call fcn.1015828d
cmp edi, edi
je 0x100532d0
call fcn.1015828d
cmp esi, ebx
je 0x10053366
cmp esi, dword [edi + 8]
jb 0x100532e2
call fcn.1015828d
mov ecx, dword [esp + 0x7c]
cmp dword [esi], ecx
je 0x100532fd
cmp esi, dword [edi + 8]
jb 0x100532f4
call fcn.1015828d
mov ebx, dword [esp + 0x1c]
add esi, 0x18
jmp 0x100532b0
cmp esi, dword [edi + 8]
jb 0x10053307
call fcn.1015828d
mov ebx, dword [esp + 0x80]
cmp dword [esi + 8], ebx
jae 0x10053320
cmp esi, dword [edi + 8]
jb 0x1005331d
call fcn.1015828d
mov dword [esi + 8], ebx
cmp esi, dword [edi + 8]
jb 0x1005332a
call fcn.1015828d
add dword [esi + 0x14], ebx
cmp esi, dword [edi + 8]
jb 0x10053337
call fcn.1015828d
add dword [esi + 0x10], 1
cmp esi, dword [edi + 8]
jb 0x10053359
call fcn.1015828d
cmp esi, dword [edi + 8]
jb 0x10053359
call fcn.1015828d
cmp esi, dword [edi + 8]
jb 0x10053359
call fcn.1015828d
mov eax, dword [esi + 0x14]
xor edx, edx
div dword [esi + 0x10]
mov dword [esi + 4], eax
jmp 0x100533ab
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 4]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], 1
jne 0x1005339f
call fcn.1015828d
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call fcn.10052530
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc