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

Disassembly:
push 0xffffffffffffffff
push 0x100f8953
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0xc8]
lea eax, [esp + 0x34]
push eax
call fcn.10015340
mov ebx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc0], 0
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx + 4]
add ebx, 0x3c
lea edi, [esp + edi + 0x3c]
mov dword [esp + 0x1c], ebx
call fcn.10015670
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
push edx
lea eax, [esp + 0x40]
push eax
call ecx
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x54]
mov edi, dword [esp + eax + 0x5c]
mov dword [esp + 0x30], ecx
shr ecx, 8
add esp, 8
and cl, 1
mov dword [esp + 0x2c], edi
je 0x100138c8
test edi, edi
je 0x100138c8
mov bl, 1
jmp 0x100138ca
xor bl, bl
mov ecx, dword [esp + 0xd0]
push 0xffffffffffffffff
push 0
call fcn.10005db0
test bl, bl
jne 0x100139e0
test edi, edi
jle 0x100138f8
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x3c]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
push ecx
lea edx, [esp + 0x40]
push edx
call eax
mov ebp, dword [esp + 0xd4]
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx]
xor bl, bl
add esp, 8
test byte [ebp + 0x60], 2
mov byte [esp + 0x24], bl
je 0x1001396e
mov edx, dword [esi + 0x24]
mov eax, dword [edx]
sub eax, edi
je 0x10013956
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.100083d0
cmp byte [edi], al
je 0x1001396e
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.100083d0
cmp byte [edi], al
je 0x1001396e
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x20
lea ecx, [esp + ecx + 0x40]
call fcn.100083d0
mov bl, al
mov byte [esp + 0x24], bl
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
mov ecx, dword [ebp + 0x5c]
xor edx, edx
test bl, bl
setne dl
mov dword [esp + 0x30], eax
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x30]
jb 0x10013998
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
mov cl, byte [esp + edx + 0x6c]
mov edx, dword [ebp + 0x60]
mov eax, dword [eax]
shr edx, 2
mov byte [esp + 0x1c], cl
and dl, 1
movzx ecx, dl
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ecx
push eax
push edi
mov edi, dword [esp + 0xec]
call fcn.10015800
add esp, 0x1c
jmp 0x10013cb1
mov edx, dword [ebp]
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x40]
push eax
call ecx
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x14]
mov eax, dword [eax]
mov ebx, dword [edx]
mov ecx, dword [esp + 0xd4]
mov edi, eax
sub edi, ebx
add esp, 8
test byte [ecx + 0x60], 2
mov dword [esp + 0x20], edi
mov byte [esp + 0x1b], 0
je 0x10013a4a
sub eax, dword [edx]
je 0x10013a45
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.100083d0
cmp byte [ebx], al
je 0x10013a4a
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.100083d0
cmp byte [ebx], al
je 0x10013a4a
mov byte [esp + 0x1b], 1
mov eax, dword [esp + 0x2c]
cmp edi, eax
jne 0x10013a78
mov edx, dword [esp + 0xcc]
cmp eax, dword [edx + 0x5c]
jg 0x10013a78
cmp byte [esp + 0x1b], 0
jne 0x10013a78
mov ecx, dword [esp + 0xd0]
push edi
push ebx
call fcn.10005cd0
jmp 0x10013cb1
mov ecx, dword [esp + 0xd0]
push edi
push ebx
call fcn.10005cd0
call fcn.10015780
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call fcn.10015340
mov eax, dword [esp + 0xd4]
mov byte [esp + 0xc0], 1
mov ecx, dword [esp + 0x7c]
mov edi, dword [ecx + 4]
mov ebx, dword [esp + 0x1c]
lea edi, [esp + edi + 0x7c]
call fcn.10015670
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
push edx
lea eax, [esp + 0x80]
push eax
call ecx
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 4]
mov bl, byte [esp + 0x23]
add esp, 8
lea eax, [esp + eax + 0x7c]
mov dword [eax + 0x18], 0
test bl, bl
je 0x10013afa
lea eax, [esp + 0x7c]
push eax
mov cl, 0x20
call fcn.1000a990
add esp, 4
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
push ecx
lea edx, [esp + 0x80]
push edx
call eax
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [esi + 0x14]
add esp, 8
sub eax, dword [edx]
jne 0x10013b3f
mov eax, dword [esp + 0xcc]
test byte [eax + 0x60], 2
je 0x10013b3f
lea ecx, [esp + 0x7c]
push ecx
mov cl, 0x20
mov byte [esp + 0x1f], 1
call fcn.1000a990
mov bl, byte [esp + 0x1f]
add esp, 4
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov edx, dword [esp + 0xcc]
mov edx, dword [edx + 0x5c]
sub eax, ecx
mov dword [esp + 0x28], eax
cmp eax, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x28]
jb 0x10013b6d
lea eax, [esp + 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x2c], edx
ja 0x10013b8c
push edx
push ecx
mov ecx, dword [esp + 0xd8]
call fcn.10005cd0
jmp 0x10013c4d
mov eax, dword [esp + 0x20]
xor ecx, ecx
test bl, bl
setne cl
add eax, ecx
mov dword [esp + 0x20], eax
cmp edx, eax
lea eax, [esp + 0x30]
jb 0x10013ba9
lea eax, [esp + 0x20]
mov edx, dword [eax]
movzx edi, bl
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edi
cmp edi, edx
jae 0x10013bf7
mov ebx, edi
sub ebx, ecx
mov edi, edi
mov ebp, dword [esp + 0xd0]
cmp ebx, dword [ebp + 0x14]
jbe 0x10013bd5
call fcn.100b308d
mov edx, dword [esp + 0x20]
cmp dword [ebp + 0x18], 0x10
jb 0x10013be0
mov eax, dword [ebp + 4]
jmp 0x10013be3
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x24]
mov cl, byte [edi + ecx]
cmp cl, byte [eax + ebx]
jne 0x10013bfe
inc edi
inc ebx
cmp edi, edx
jb 0x10013bc0
jmp 0x10013bfe
mov ebp, dword [esp + 0xd0]
mov ebx, dword [esp + 0x30]
cmp edi, ebx
jb 0x10013c0a
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push edi
push edx
mov ecx, ebp
call fcn.10005cd0
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
mov cl, byte [esp + edx + 0xac]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
sub eax, ebx
push edx
push eax
mov ecx, ebp
call fcn.10008140
mov eax, dword [esp + 0x24]
sub ebx, edi
push ebx
add edi, eax
push edi
mov ecx, ebp
call fcn.10005270
mov byte [esp + 0xc0], 0
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x7c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edi, dword [esp + 0x78]
test edi, edi
je 0x10013c96
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10013c96
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10013c96
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.10057a79
add esp, 4
call fcn.10015780
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x3c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10013d02
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10013d02
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 0x10013d02
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], vtable.std::ios_base.0
call fcn.10057a79
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret