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

Disassembly:
push 0xffffffffffffffff
push 0x1011a2a3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10157de0]
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.10017be0
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xbc], 0
test ebx, ebx
je 0x10016256
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.1000bc60
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10016256
push 0
lea ecx, [esp + 0x28]
call fcn.1006ff68
mov eax, dword [esi + 4]
test eax, eax
jbe 0x10016234
cmp eax, 0xffffffff
jae 0x10016234
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.1006ff90
test edi, edi
je 0x10016256
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.10017e70
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 0x100162b0
test edi, edi
je 0x100162b0
mov bl, 1
jmp 0x100162b2
xor bl, bl
mov ecx, dword [esp + 0xcc]
push 0xffffffffffffffff
push 0
call fcn.10007290
test bl, bl
jne 0x100163c8
test edi, edi
jle 0x100162e0
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 0x10016356
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
sub eax, edi
je 0x1001633e
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.10009420
cmp byte [edi], al
je 0x10016356
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.10009420
cmp byte [edi], al
je 0x10016356
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x20
lea ecx, [esp + ecx + 0x38]
call fcn.10009420
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 0x10016380
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.10018010
add esp, 0x1c
jmp 0x1001668f
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 0x10016432
sub eax, ebx
je 0x1001642d
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.10009420
cmp byte [ebx], al
je 0x10016432
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.10009420
cmp byte [ebx], al
je 0x10016432
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x24]
cmp edi, eax
jne 0x10016459
cmp eax, dword [esi + 0x5c]
jg 0x10016459
cmp byte [esp + 0x17], 0
jne 0x10016459
mov ecx, dword [esp + 0xcc]
push edi
push ebx
call fcn.10007180
jmp 0x10016688
mov ecx, dword [esp + 0xcc]
push edi
push ebx
call fcn.10007180
mov esi, dword [esp + 0xd0]
call fcn.10017f80
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.10017be0
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.10017e70
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 0x100164db
lea edx, [esp + 0x74]
push 0x20
push edx
call fcn.1000d5f0
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 0x10016520
mov edx, dword [esp + 0xc8]
test byte [edx + 0x60], 2
je 0x10016520
lea eax, [esp + 0x74]
push 0x20
push eax
mov byte [esp + 0x1f], 1
call fcn.1000d5f0
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 0x1001654e
lea eax, [esp + 0x18]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x24], ebx
ja 0x1001656d
push ebx
push ecx
mov ecx, dword [esp + 0xd4]
call fcn.10007180
jmp 0x1001662a
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 0x1001658e
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 0x100165d8
mov ebp, edi
sub ebp, ecx
mov esi, dword [esp + 0xcc]
cmp ebp, dword [esi + 0x14]
jbe 0x100165b4
call fcn.100d3cfd
cmp dword [esi + 0x18], 0x10
jb 0x100165bf
mov eax, dword [esi + 4]
jmp 0x100165c2
lea eax, [esi + 4]
mov ecx, dword [esp + 0x20]
mov dl, byte [edi + ecx]
cmp dl, byte [eax + ebp]
jne 0x100165df
inc edi
inc ebp
cmp edi, dword [esp + 0x1c]
jb 0x100165a3
jmp 0x100165df
mov esi, dword [esp + 0xcc]
cmp edi, ebx
jb 0x100165e7
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 0x10016673
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10016673
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 0x10016673
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.1006fa15
add esp, 4
mov ebp, dword [esp + 0xd0]
mov esi, ebp
call fcn.10017f80
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 0x100166e2
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100166e2
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 0x100166e2
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.1006fa15
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