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

Disassembly:
push 0xffffffffffffffff
push 0x10119163
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10156de0]
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.10017ba0
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xbc], 0
test ebx, ebx
je 0x10016216
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.1000bbf0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10016216
push 0
lea ecx, [esp + 0x28]
call fcn.1006ee5c
mov eax, dword [esi + 4]
test eax, eax
jbe 0x100161f4
cmp eax, 0xffffffff
jae 0x100161f4
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.1006ee84
test edi, edi
je 0x10016216
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.10017e30
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 0x10016270
test edi, edi
je 0x10016270
mov bl, 1
jmp 0x10016272
xor bl, bl
mov ecx, dword [esp + 0xcc]
push 0xffffffffffffffff
push 0
call fcn.10007220
test bl, bl
jne 0x10016388
test edi, edi
jle 0x100162a0
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 0x10016316
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
sub eax, edi
je 0x100162fe
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.100093b0
cmp byte [edi], al
je 0x10016316
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.100093b0
cmp byte [edi], al
je 0x10016316
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x20
lea ecx, [esp + ecx + 0x38]
call fcn.100093b0
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 0x10016340
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.10017fd0
add esp, 0x1c
jmp 0x1001664f
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 0x100163f2
sub eax, ebx
je 0x100163ed
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.100093b0
cmp byte [ebx], al
je 0x100163f2
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.100093b0
cmp byte [ebx], al
je 0x100163f2
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x24]
cmp edi, eax
jne 0x10016419
cmp eax, dword [esi + 0x5c]
jg 0x10016419
cmp byte [esp + 0x17], 0
jne 0x10016419
mov ecx, dword [esp + 0xcc]
push edi
push ebx
call fcn.10007110
jmp 0x10016648
mov ecx, dword [esp + 0xcc]
push edi
push ebx
call fcn.10007110
mov esi, dword [esp + 0xd0]
call fcn.10017f40
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.10017ba0
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.10017e30
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 0x1001649b
lea edx, [esp + 0x74]
push 0x20
push edx
call fcn.1000d580
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 0x100164e0
mov edx, dword [esp + 0xc8]
test byte [edx + 0x60], 2
je 0x100164e0
lea eax, [esp + 0x74]
push 0x20
push eax
mov byte [esp + 0x1f], 1
call fcn.1000d580
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 0x1001650e
lea eax, [esp + 0x18]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x24], ebx
ja 0x1001652d
push ebx
push ecx
mov ecx, dword [esp + 0xd4]
call fcn.10007110
jmp 0x100165ea
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 0x1001654e
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 0x10016598
mov ebp, edi
sub ebp, ecx
mov esi, dword [esp + 0xcc]
cmp ebp, dword [esi + 0x14]
jbe 0x10016574
call fcn.100d2bcd
cmp dword [esi + 0x18], 0x10
jb 0x1001657f
mov eax, dword [esi + 4]
jmp 0x10016582
lea eax, [esi + 4]
mov ecx, dword [esp + 0x20]
mov dl, byte [edi + ecx]
cmp dl, byte [eax + ebp]
jne 0x1001659f
inc edi
inc ebp
cmp edi, dword [esp + 0x1c]
jb 0x10016563
jmp 0x1001659f
mov esi, dword [esp + 0xcc]
cmp edi, ebx
jb 0x100165a7
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edi
push eax
mov ecx, esi
call fcn.10007110
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.10006f60
mov eax, dword [esp + 0x20]
sub ebx, edi
push ebx
add edi, eax
push edi
mov ecx, esi
call fcn.10007e80
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 0x10016633
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10016633
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 0x10016633
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.1006e909
add esp, 4
mov ebp, dword [esp + 0xd0]
mov esi, ebp
call fcn.10017f40
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 0x100166a2
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100166a2
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 0x100166a2
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.1006e909
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