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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10182960
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
lea eax, [esi + 8]
mov dword [esp + 0x44], eax
add eax, 4
push eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x44], 0x10199614
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x28]
mov eax, dword [eax]
add esi, 0x24
mov ebp, eax
mov eax, dword [esi + 4]
mov edi, esi
mov byte [esp + 0x88], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], eax
jmp 0x100555d0
cmp edi, ebx
je 0x100555d8
cmp edi, esi
je 0x100555dd
call fcn.1015988d
cmp ebp, dword [esp + 0x3c]
je 0x10055792
cmp edi, ebx
jne 0x100555f0
call fcn.1015988d
cmp ebp, dword [edi + 4]
jne 0x100555fa
call fcn.1015988d
lea ecx, [esp + 0x60]
lea edi, [ebp + 0x10]
push ecx
lea ecx, [edi + 0x18]
call fcn.100d7e30
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x88], 2
jb 0x1005561d
mov eax, dword [eax + 4]
jmp 0x10055620
add eax, 4
push eax
call fcn.1002ab70
add esp, 4
test al, al
sete bl
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x1005564a
mov edx, dword [esp + 0x64]
push edx
call fcn.10159534
add esp, 4
test bl, bl
mov ebx, dword [esp + 0x24]
je 0x1005569b
cmp ebp, dword [ebx + 4]
jne 0x1005565c
call fcn.1015988d
lea eax, [esp + 0x60]
push eax
lea ecx, [edi + 0x18]
call fcn.10058770
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0x30
mov byte [esp + 0x8c], 3
call fcn.10055410
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x10055766
mov ecx, dword [esp + 0x64]
push ecx
jmp 0x1005575e
xor eax, eax
cmp ebp, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jne 0x100556af
call fcn.1015988d
lea edx, [esp + 0x60]
push edx
lea ecx, [edi + 0x18]
call fcn.100d7e30
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x88], 4
jb 0x100556cf
mov eax, dword [eax + 4]
jmp 0x100556d2
add eax, 4
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.100299b0
add esp, 8
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x100556fc
mov edx, dword [esp + 0x64]
push edx
call fcn.10159534
add esp, 4
cmp ebp, dword [ebx + 4]
jne 0x10055706
call fcn.1015988d
lea ecx, [edi + 0x18]
call fcn.10058520
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x1005571e
mov eax, dword [esp + 0x18]
cmp eax, edx
je 0x1005577a
cmp ebp, dword [ebx + 4]
jne 0x10055728
call fcn.1015988d
lea ecx, [esp + 0x60]
push ecx
lea ecx, [edi + 0x18]
call fcn.10058770
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0x30
mov byte [esp + 0x8c], 5
call fcn.10055410
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x10055766
mov edx, dword [esp + 0x64]
push edx
call fcn.10159534
add esp, 4
cmp ebp, dword [ebx + 4]
jne 0x10055770
call fcn.1015988d
push edi
lea ecx, [esp + 0x54]
call fcn.100546b0
lea ecx, [esp + 0x24]
call fcn.1004fa20
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
xor ebx, ebx
jmp 0x100555d0
mov edi, dword [esp + 0x54]
cmp edi, ebx
mov ecx, dword [esp + 0x58]
jne 0x100557a4
mov dword [esp + 0x1c], ebx
jmp 0x100557bd
mov edx, ecx
sub edx, edi
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jle 0x10055878
mov dword [esp + 0x14], 0
jmp 0x100557da
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
test edi, edi
je 0x100557f5
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100557fe
call fcn.1015988d
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
add edi, eax
push edi
mov ecx, esi
call fcn.10050220
test esi, esi
mov ebp, eax
jne 0x10055817
call fcn.1015988d
push edi
mov ecx, esi
call fcn.10050020
test esi, esi
mov edi, eax
jne 0x1005582a
call fcn.1015988d
mov eax, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
test eax, eax
je 0x1005583c
cmp eax, esi
je 0x10055841
call fcn.1015988d
cmp dword [esp + 0x30], ebp
je 0x10055856
lea ecx, [esp + 0x2c]
call fcn.1004fa20
mov eax, dword [esp + 0x2c]
jmp 0x10055834
push ebp
push esi
push edi
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.100515d0
add dword [esp + 0x14], 0x14
add ebx, 1
cmp ebx, dword [esp + 0x1c]
jl 0x100557d2
mov edx, dword [esi + 4]
mov ebp, dword [edx]
xor ebx, ebx
mov edi, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
lea ecx, [ecx]
test edi, edi
je 0x10055898
cmp edi, esi
je 0x1005589d
call fcn.1015988d
cmp ebp, dword [esp + 0x3c]
je 0x100558d7
test edi, edi
jne 0x100558ac
call fcn.1015988d
cmp ebp, dword [edi + 4]
jne 0x100558b6
call fcn.1015988d
lea ecx, [ebp + 0x28]
call fcn.100d7a80
add ebx, eax
adc dword [esp + 0x30], edx
lea ecx, [esp + 0x24]
call fcn.1004fa20
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x10055890
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x100558f3
push eax
call fcn.10159534
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret