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

Disassembly:
push 0xffffffffffffffff
push 0x1011b7d3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x2c]
push eax
call fcn.10017c50
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xbc], 0
test ebx, ebx
je 0x100162c6
mov edx, dword [esp + 0x34]
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + 4]
lea ecx, [esp + ecx + 0x3c]
call fcn.1000bce0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100162c6
push 0
lea ecx, [esp + 0x28]
call fcn.10071540
mov eax, dword [esi + 4]
test eax, eax
jbe 0x100162a4
cmp eax, 0xffffffff
jae 0x100162a4
dec eax
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
neg edi
sbb edi, edi
not edi
lea ecx, [esp + 0x24]
and edi, esi
call fcn.10071568
test edi, edi
je 0x100162c6
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0xc8]
mov edi, dword [eax + 4]
lea ecx, [esi + 0x3c]
mov eax, ebx
lea edi, [esp + edi + 0x34]
mov ebx, ecx
mov dword [esp + 0x18], ecx
call fcn.10017ee0
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
push ecx
lea edx, [esp + 0x38]
push edx
call eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + eax + 0x4c]
mov edi, dword [esp + eax + 0x54]
mov dword [esp + 0x24], ecx
shr ecx, 8
add esp, 8
and cl, 1
mov dword [esp + 0x24], edi
je 0x10016320
test edi, edi
je 0x10016320
mov bl, 1
jmp 0x10016322
xor bl, bl
mov ecx, dword [esp + 0xcc]
push 0xffffffffffffffff
push 0
call fcn.10007290
test bl, bl
jne 0x10016438
test edi, edi
jle 0x10016350
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x34]
mov dword [eax + 0x18], 0
mov eax, dword [ebp]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x38]
push ecx
call edx
mov ebp, dword [esp + 0xd8]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
xor bl, bl
add esp, 8
test byte [esi + 0x60], 2
mov byte [esp + 0x20], bl
je 0x100163c6
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
sub eax, edi
je 0x100163ae
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.10009440
cmp byte [edi], al
je 0x100163c6
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.10009440
cmp byte [edi], al
je 0x100163c6
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x20
lea ecx, [esp + ecx + 0x38]
call fcn.10009440
mov bl, al
mov byte [esp + 0x20], bl
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ecx]
mov ecx, dword [esi + 0x5c]
xor edx, edx
test bl, bl
setne dl
mov dword [esp + 0x28], eax
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x28]
jb 0x100163f0
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov cl, byte [esp + edx + 0x64]
mov edx, dword [esi + 0x60]
mov eax, dword [eax]
shr edx, 2
mov byte [esp + 0x18], cl
and dl, 1
movzx ecx, dl
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push eax
push edi
mov edi, dword [esp + 0xe8]
call fcn.10018080
add esp, 0x1c
jmp 0x100166ff
mov edx, dword [ebp]
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x38]
push eax
call ecx
mov eax, dword [esp + 0xd8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [edx]
mov ebx, dword [ecx]
mov edi, eax
sub edi, ebx
add esp, 8
test byte [esi + 0x60], 2
mov dword [esp + 0x28], edi
mov byte [esp + 0x17], 0
je 0x100164a2
sub eax, ebx
je 0x1001649d
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.10009440
cmp byte [ebx], al
je 0x100164a2
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.10009440
cmp byte [ebx], al
je 0x100164a2
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x24]
cmp edi, eax
jne 0x100164c9
cmp eax, dword [esi + 0x5c]
jg 0x100164c9
cmp byte [esp + 0x17], 0
jne 0x100164c9
mov ecx, dword [esp + 0xcc]
push edi
push ebx
call fcn.10007180
jmp 0x100166f8
mov ecx, dword [esp + 0xcc]
push edi
push ebx
call fcn.10007180
mov esi, dword [esp + 0xd0]
call fcn.10017ff0
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.10017c50
mov byte [esp + 0xbc], 1
mov eax, dword [esp + 0x74]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0xd4]
mov ebx, dword [esp + 0x18]
lea edi, [esp + edi + 0x74]
call fcn.10017ee0
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
push ecx
lea edx, [esp + 0x78]
push edx
call eax
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 4]
add esp, 8
cmp byte [esp + 0x17], 0
lea eax, [esp + eax + 0x74]
mov dword [eax + 0x18], 0
je 0x1001654b
lea edx, [esp + 0x74]
push 0x20
push edx
call fcn.1000d670
add esp, 8
mov eax, dword [ebp]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x78]
push ecx
call edx
mov esi, dword [esp + 0xd8]
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
add esp, 8
sub eax, dword [ecx]
jne 0x10016590
mov edx, dword [esp + 0xc8]
test byte [edx + 0x60], 2
je 0x10016590
lea eax, [esp + 0x74]
push 0x20
push eax
mov byte [esp + 0x1f], 1
call fcn.1000d670
add esp, 8
mov edx, dword [esi + 0x24]
mov eax, dword [edx]
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx]
mov edx, dword [esp + 0xc8]
mov edx, dword [edx + 0x5c]
sub eax, ecx
mov dword [esp + 0x1c], eax
cmp eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0x1c]
jb 0x100165be
lea eax, [esp + 0x18]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x24], ebx
ja 0x100165dd
push ebx
push ecx
mov ecx, dword [esp + 0xd4]
call fcn.10007180
jmp 0x1001669a
mov dl, byte [esp + 0x17]
mov eax, dword [esp + 0x28]
xor ecx, ecx
test dl, dl
setne cl
add eax, ecx
mov dword [esp + 0x18], eax
cmp ebx, eax
lea eax, [esp + 0x1c]
jb 0x100165fe
lea eax, [esp + 0x18]
mov eax, dword [eax]
movzx edi, dl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
cmp edi, eax
jae 0x10016648
mov ebp, edi
sub ebp, ecx
mov esi, dword [esp + 0xcc]
cmp ebp, dword [esi + 0x14]
jbe 0x10016624
call fcn.100d526d
cmp dword [esi + 0x18], 0x10
jb 0x1001662f
mov eax, dword [esi + 4]
jmp 0x10016632
lea eax, [esi + 4]
mov ecx, dword [esp + 0x20]
mov dl, byte [edi + ecx]
cmp dl, byte [eax + ebp]
jne 0x1001664f
inc edi
inc ebp
cmp edi, dword [esp + 0x1c]
jb 0x10016613
jmp 0x1001664f
mov esi, dword [esp + 0xcc]
cmp edi, ebx
jb 0x10016657
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edi
push eax
mov ecx, esi
call fcn.10007180
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
mov cl, byte [esp + edx + 0xa4]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
sub eax, ebx
push edx
push eax
mov ecx, esi
call fcn.10006fd0
mov eax, dword [esp + 0x20]
sub ebx, edi
push ebx
add edi, eax
push edi
mov ecx, esi
call fcn.10007ef0
mov byte [esp + 0xbc], 0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x74], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov esi, dword [esp + 0x70]
test esi, esi
je 0x100166e3
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100166e3
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100166e3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.10070fed
add esp, 4
mov ebp, dword [esp + 0xd0]
mov esi, ebp
call fcn.10017ff0
mov dword [esp + 0xbc], 0xffffffff
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x34], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10016752
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10016752
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10016752
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], vtable.std::ios_base.0
call fcn.10070fed
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret