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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov ebx, dword [esi + 0xb4]
mov edi, ebx
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edi
cmp dword [esi + 0x70], edx
je 0x10002099
mov eax, dword [esi]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x64]
sub ecx, eax
cmp eax, dword [esi + 0x3c]
mov dword [ebp - 0x50], 0x52
sbb eax, eax
mov dword [ebp - 0x4c], edx
and eax, ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], edx
test eax, eax
jle 0x10001d4e
mov ecx, edi
sub ecx, ebx
lea eax, [ecx + 0x18]
cmp eax, dword [esi + 4]
jle 0x10001d1b
push ecx
mov edx, ebx
mov ecx, esi
lfence
call fcn.10001092
pop ecx
mov edi, ebx
mov edx, dword [esi + 0xa4]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + ecx*8 + 4]
lea edx, [ebp - 0x5c]
mov ecx, edi
mov dword [ebp - 0x44], eax
call fcn.10001c57
mov edx, dword [ebp - 8]
mov edi, eax
inc edx
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 0x20]
jl 0x10001cff
mov dword [ebp - 4], eax
xor edx, edx
mov dword [esi + 0xa8], edx
cmp dword [esi + 0x40], edx
jne 0x10001da3
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x4c]
test ecx, ecx
jne 0x10001d6f
mov edx, 0x1b58
add eax, edx
mov dword [esi + 0x74], eax
jmp 0x10001da6
sub eax, dword [esi + 0x74]
js 0x10001da9
mov edx, 0x1b58
cmp ecx, edx
cmovb ecx, edx
mov eax, ecx
shr eax, 1
add ecx, eax
mov eax, 0x1d4c0
mov dword [esi + 0x78], ecx
cmp ecx, eax
jbe 0x10001d95
mov dword [esi + 0x78], eax
jmp 0x10001d97
mov eax, ecx
add eax, dword [esi + 0x4c]
or dword [esi + 0x48], 1
mov dword [esi + 0x74], eax
jmp 0x10001da9
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
test byte [esi + 0x48], 1
je 0x10001de1
mov ecx, edi
mov dword [ebp - 0x50], 0x53
sub ecx, ebx
lea eax, [ecx + 0x18]
cmp eax, dword [esi + 4]
jle 0x10001dd2
push ecx
mov edx, ebx
mov ecx, esi
lfence
call fcn.10001092
pop ecx
mov edi, ebx
lea edx, [ebp - 0x5c]
mov ecx, edi
call fcn.10001c57
mov edi, eax
mov dword [ebp - 4], edi
test byte [esi + 0x48], 2
je 0x10001e19
mov ecx, edi
mov dword [ebp - 0x50], 0x54
sub ecx, ebx
lea eax, [ecx + 0x18]
cmp eax, dword [esi + 4]
jle 0x10001e0a
push ecx
mov edx, ebx
mov ecx, esi
lfence
call fcn.10001092
pop ecx
mov edi, ebx
lea edx, [ebp - 0x5c]
mov ecx, edi
call fcn.10001c57
mov edi, eax
mov dword [ebp - 4], edi
and dword [esi + 0x48], 0
mov edx, dword [esi + 0x40]
cmp dword [esi + 0x38], edx
cmovbe edx, dword [esi + 0x38]
cmp dword [esi + 0xc0], 0
mov dword [ebp - 0x20], edx
jne 0x10001e3d
cmp dword [esi + 0x44], edx
cmovbe edx, dword [esi + 0x44]
mov dword [ebp - 0x20], edx
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sub eax, edx
jns 0x10001edf
lea edi, [esi + 0x84]
mov ebx, dword [edi]
cmp edi, ebx
je 0x10001edc
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [esi + 0x98]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], eax
lea eax, [esi + 0x94]
mov dword [ebx], eax
mov eax, dword [esi + 0x98]
mov dword [eax], ebx
dec dword [esi + 0x68]
inc dword [esi + 0x60]
mov eax, dword [esi]
mov dword [esi + 0x98], ebx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0xc], 0x51
mov dword [ebx + 0x18], ecx
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x1c], eax
inc dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x28], ecx
mov eax, dword [esi + 0x30]
and dword [ebx + 0x30], 0
and dword [ebx + 0x34], 0
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sub eax, edx
js 0x10001e51
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0xb8]
or ecx, 0xffffffff
test eax, eax
cmovg ecx, eax
cmp dword [esi + 0x6c], 0
mov dword [ebp - 4], ecx
jne 0x10001efe
mov edx, dword [esi + 0x30]
sar edx, 3
jmp 0x10001f00
xor edx, edx
lea eax, [esi + 0x94]
mov dword [ebp - 8], edx
mov ebx, dword [eax]
jmp 0x10002019
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jne 0x10001f28
mov dword [ebx + 0x34], 1
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x2c], eax
add eax, edx
jmp 0x10001fa2
mov eax, dword [ebp - 0xc]
sub eax, dword [ebx + 0x28]
js 0x10001f78
lea eax, [ecx + 1]
mov dword [ebx + 0x34], eax
inc dword [esi + 0x58]
cmp dword [esi + 0x6c], 0
jne 0x10001f4c
mov ecx, dword [esi + 0x30]
mov eax, dword [ebx + 0x2c]
cmp eax, ecx
cmovae ecx, eax
jmp 0x10001f6a
cmp dword [esi + 0x6c], 2
jae 0x10001f59
mov eax, dword [ebx + 0x2c]
mov ecx, eax
jmp 0x10001f5f
mov eax, dword [esi + 0x30]
mov ecx, dword [ebx + 0x2c]
mov eax, eax
test eax, eax
jns 0x10001f68
add eax, 1
sar eax, 1
add eax, ecx
mov dword [ebp - 0x1c], 1
mov dword [ebx + 0x2c], eax
jmp 0x10001fa2
mov eax, dword [ebp - 4]
cmp dword [ebx + 0x30], eax
jb 0x1000200e
mov eax, dword [esi + 0xbc]
cmp ecx, eax
jle 0x10001f92
test eax, eax
jg 0x1000200e
and dword [ebx + 0x30], 0
lea eax, [ecx + 1]
inc dword [ebp - 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0xc]
mov edx, edi
add eax, ecx
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x24]
add eax, 0x18
add eax, edx
cmp eax, dword [esi + 4]
jle 0x10001fde
push edx
mov edx, ecx
mov ecx, esi
lfence
call fcn.10001092
mov edi, dword [ebp - 0x10]
pop ecx
mov edx, ebx
mov ecx, edi
call fcn.10001c57
cmp dword [ebx + 0x24], 0
mov edi, eax
jbe 0x10002002
push dword [ebx + 0x24]
lea eax, [ebx + 0x38]
push eax
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
add edi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x34]
cmp eax, dword [esi + 0x7c]
jb 0x1000200e
or dword [esi + 0xc], 0xffffffff
mov ebx, dword [ebx]
lea eax, [esi + 0x94]
mov edx, dword [ebp - 8]
cmp ebx, eax
jne 0x10001f10
mov eax, dword [ebp - 0x10]
sub edi, eax
test edi, edi
jle 0x10002038
push edi
mov edx, eax
mov ecx, esi
lfence
call fcn.10001092
pop ecx
cmp dword [ebp - 0x14], 0
push 2
pop edx
je 0x10002069
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
shr eax, 1
mov dword [esi + 0x24], eax
cmp eax, edx
jae 0x10002055
mov dword [esi + 0x24], edx
mov eax, edx
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [esi + 8]
imul eax, ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x80], eax
cmp dword [ebp - 0x1c], 0
je 0x10002085
mov eax, dword [ebp - 0x20]
shr eax, 1
cmp eax, edx
mov dword [esi + 0x44], 1
cmovb eax, edx
mov dword [esi + 0x24], eax
jmp 0x10002090
xor eax, eax
inc eax
cmp dword [esi + 0x44], eax
jae 0x10002099
mov dword [esi + 0x44], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x80], eax
pop edi
pop esi
pop ebx
leave
ret