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

Disassembly:
push 0xffffffffffffffff
push 0x10080c21
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097288]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], ecx
xor esi, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x50], esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x10012951
cmp eax, 0x3fe40
jbe 0x10012943
push 0x1008e028
call fcn.1006ec2a
push eax
lea ecx, [esp + 0x34]
call fcn.10013520
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax + 0x24], edi
jle 0x10012a22
xor ebp, ebp
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x3c]
push edi
mov byte [esp + 0x54], 1
call fcn.10052590
mov eax, dword [esp + 0x64]
add esp, 4
mov ebx, dword [eax]
add ebx, ebp
cmp esi, dword [esp + 0x38]
jne 0x100129aa
push ecx
lea ecx, [esp + 0x34]
call fcn.10019040
mov esi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0x50], 2
test esi, esi
je 0x100129d7
mov eax, dword [esp + 0x6c]
push dword [eax + 0x64]
push dword [eax + 0x68]
lea eax, [esp + 0x44]
push ecx
push ebx
push eax
push dword [esp + 0x2c]
mov ecx, esi
call fcn.1003a5c0
add esi, 0x401c
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], esi
test eax, eax
je 0x10012a0f
push eax
call fcn.1006f76a
add esp, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov ebx, dword [esp + 0x58]
inc edi
add ebp, 0xc
mov eax, dword [ebx]
cmp edi, dword [eax + 0x24]
jl 0x10012960
mov eax, dword [ebx]
xor esi, esi
mov ebx, dword [eax + 0x18]
mov ebp, dword [eax + 0x14]
lea esp, [esp]
lea eax, [esi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebx
jb 0x10012a59
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebp
jae 0x10012a5c
inc esi
jmp 0x10012a30
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x58]
cmp dword [esp + 0x64], esi
jne 0x10012c6d
test ecx, ecx
jle 0x10012c6d
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0x28], ebp
cmp dword [eax + 0x24], ebp
jle 0x10012c6d
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebx]
mov ecx, ebx
push ebp
call dword [eax + 0xc]
mov edx, dword [ebx]
mov ecx, ebx
push ebp
mov esi, eax
call dword [edx + 8]
cmp eax, esi
jge 0x10012c59
mov eax, dword [esp + 0x58]
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov dword [esp + 0x1c], edi
cmp esi, edi
je 0x10012c47
mov eax, dword [ebx]
mov ecx, ebx
push ebp
call dword [eax + 8]
mov ebx, eax
mov eax, dword [esp + 0x5c]
push ebp
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebp, eax
sub ebp, ebx
je 0x10012c26
mov ecx, dword [esp + 0x14]
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov edx, eax
shr edx, 1
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 8]
cmp eax, dword [esp + 0x20]
jb 0x10012b99
sub eax, dword [ecx + 4]
add eax, edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
cmp edx, 0x10000
ja 0x10012b4a
shl dword [ecx + 8], 8
shl edx, 8
mov dword [ecx + 4], edx
mov edx, dword [ecx]
mov eax, dword [edx + 8]
cmp eax, dword [edx + 4]
jb 0x10012b37
mov eax, dword [edx + 0xc]
jmp 0x10012b47
mov edi, dword [edx + 8]
mov eax, dword [edx]
movzx eax, byte [eax + edi]
inc dword [edx + 8]
mov edi, dword [esp + 0x1c]
or dword [ecx + 8], eax
mov eax, dword [ecx + 4]
cmp eax, 0x10000
ja 0x10012b80
mov edx, dword [ecx]
shl dword [ecx + 8], 8
shl eax, 8
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
cmp eax, dword [edx + 4]
jb 0x10012b6d
mov eax, dword [edx + 0xc]
jmp 0x10012b7d
mov edi, dword [edx + 8]
mov eax, dword [edx]
movzx eax, byte [eax + edi]
inc dword [edx + 8]
mov edi, dword [esp + 0x1c]
or dword [ecx + 8], eax
mov eax, dword [esp + 0x24]
lea ebx, [ebx + 1]
sub ebp, eax
lea ebx, [ebx + eax]
dec ebp
je 0x10012c26
push ebp
jmp 0x10012c1a
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
cmp eax, 0x10000
ja 0x10012bd7
mov edx, dword [ecx]
shl dword [ecx + 8], 8
shl eax, 8
mov dword [ecx + 4], eax
mov ebp, dword [edx + 8]
cmp ebp, dword [edx + 4]
jb 0x10012bc0
mov eax, dword [edx + 0xc]
jmp 0x10012bd4
mov eax, dword [edx]
movzx eax, byte [eax + ebp]
mov dword [esp + 0x20], eax
lea eax, [ebp + 1]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x20]
or dword [ecx + 8], eax
mov eax, dword [ecx + 4]
cmp eax, 0x10000
ja 0x10012c11
mov edx, dword [ecx]
shl dword [ecx + 8], 8
shl eax, 8
mov dword [ecx + 4], eax
mov ebp, dword [edx + 8]
cmp ebp, dword [edx + 4]
jb 0x10012bfa
mov eax, dword [edx + 0xc]
jmp 0x10012c0e
mov eax, dword [edx]
movzx eax, byte [eax + ebp]
mov dword [esp + 0x20], eax
lea eax, [ebp + 1]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x20]
or dword [ecx + 8], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10012c26
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.1000e820
mov ebx, eax
mov ebp, dword [esp + 0x28]
push ebx
push 0
push 0
mov ecx, dword [esi + ebp*4]
push 0
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [esp + 0x5c]
add esi, 0x6c
cmp esi, edi
jne 0x10012ac2
add dword [0x1009b7a0], 1
mov edi, dword [esp + 0x58]
adc dword [0x1009b7a4], 0
mov eax, dword [edi]
inc ebp
mov dword [esp + 0x28], ebp
cmp ebp, dword [eax + 0x24]
jl 0x10012a93
mov ecx, dword [esp + 0x68]
push dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push ecx
push dword [esp + 0x7c]
mov ecx, dword [esp + 0x48]
push dword [esp + 0x78]
push edi
push eax
call fcn.10016f20
mov ebx, dword [esp + 0x58]
add esp, 0x28
mov byte [esp + 0x58], al
test ebx, ebx
je 0x10012d00
mov edi, dword [esp + 0x34]
cmp ebx, edi
je 0x10012cf3
lea esi, [ebx + 0x400c]
lea ebx, [ebx]
mov eax, dword [esi]
test eax, eax
je 0x10012ce3
push eax
call fcn.1006f76a
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
add esi, 0x401c
lea eax, [esi - 0x400c]
cmp eax, edi
jne 0x10012cc0
push ebx
call fcn.1006f76a
mov al, byte [esp + 0x5c]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret