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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov esi, esp
mov dword [esi + 0x118], ebp
mov eax, dword [ebp + 0x14]
lea edi, [esi + 0x120]
mov dword [edi - 4], esp
xor ecx, ecx
dec ecx
mov dword [edi + 8], ecx
mov dword [edi + 4], 0x10140370
mov edx, dword fs:[0]
mov dword [edi], edx
mov dword fs:[0], edi
mov dword [esi + 0x70], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
xor edx, edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], edx
mov eax, dword [eax + 0x1c]
lea ecx, [esi + 0x78]
mov dword [ecx], eax
mov dword [esi], eax
lock inc dword [eax + 4]
mov dword [edi + 8], 2
push 0x102b4a98
call fcn.1013c896
mov edx, dword [eax]
lea edi, [esi + 0x40]
mov ecx, eax
push edi
push 0x10261caa
push str.0123456789abcdefABCDEFxX_pPiInN
call dword [edx + 0x28]
xor eax, eax
dec eax
mov ecx, dword [esi]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x101313b8
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
lea ecx, [esi + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [esi + 0x128], 1
push eax
push 0xa
call fcn.101412ec
cmp byte [esi + 0x1b], 0
lea ebx, [esi + 0x10]
jns 0x101313e3
mov ebx, dword [esi + 0x10]
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x1c]
mov dword [eax], ebx
mov edi, dword [ebp + 0xc]
push 0xa0
push 0xff
lea eax, [esi + 0x78]
push eax
call fcn.10208980
add esp, 0xc
lea eax, [esi + 0x30]
lea ecx, [esi + 0x78]
mov dword [eax], ecx
lea eax, [esi + 0x2c]
mov dword [eax], 0
test edi, edi
je 0x10131429
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x1013142f
movzx eax, word [eax]
jmp 0x1013144c
mov dl, 1
xor edi, edi
jmp 0x1013145b
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x128], 1
mov ecx, edi
mov dword [esi], edi
mov dword [esi + 4], ebx
call eax
mov ebx, dword [esi + 4]
mov edi, dword [esi]
xor ecx, ecx
cmp ax, 0xffff
sete dl
je 0x10131459
mov ecx, edi
mov edi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
mov dword [esi], edi
je 0x101314a2
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10131471
movzx eax, word [eax]
jmp 0x10131493
mov byte [esi + 0xf], dl
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x128], 1
mov dword [esi + 4], ebx
call eax
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov ecx, dword [esi + 8]
mov dl, byte [esi + 0xf]
cmp ax, 0xffff
je 0x101314a2
test dl, dl
jne 0x101314ac
jmp 0x101315a8
xor ecx, ecx
test dl, dl
jne 0x101315a1
mov dword [esi + 8], ecx
mov eax, dword [esi + 0x1c]
movzx edx, byte [esi + 0x1b]
test dl, dl
jns 0x101314bd
mov edx, dword [esi + 0x14]
lea ecx, [ebx + edx]
cmp eax, ecx
jne 0x10131517
mov dword [esi + 4], edx
lea eax, [edx + edx]
mov dword [esi + 0x128], 1
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.101412ec
mov eax, dword [esi + 0x18]
mov ecx, 0x7fffffff
and eax, ecx
dec eax
cmp byte [esi + 0x1b], 0
mov ecx, 0xa
cmovns eax, ecx
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.101412ec
mov edi, dword [esi]
cmp byte [esi + 0x1b], 0
lea ebx, [esi + 0x10]
jns 0x1013150f
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 4]
add eax, ebx
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x10131524
movzx eax, word [eax]
jmp 0x1013153f
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x128], 1
mov ecx, edi
mov dword [esi + 4], ebx
call eax
mov ebx, dword [esi + 4]
mov edi, dword [esi]
movzx ecx, ax
mov edx, 0x10
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x78]
push eax
lea eax, [esi + 0x20]
push eax
push 0
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x1c]
push eax
push ebx
call fcn.1013174c
add esp, 0x20
test eax, eax
jne 0x101315a8
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x10131581
add eax, 2
mov dword [edi + 0xc], eax
jmp 0x10131418
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
mov dword [esi + 0x128], 1
mov ecx, edi
mov dword [esi + 4], ebx
call eax
mov ebx, dword [esi + 4]
mov edi, dword [esi]
jmp 0x10131418
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1c]
sub eax, ebx
mov dword [esi + 0x128], 1
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.101412ec
lea ecx, [esi + 0x34]
call fcn.1012ef50
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x1b], 0
lea edx, [esi + 0x10]
jns 0x101315d9
mov edx, dword [esi + 0x10]
sub esp, 0x10
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.1012eef3
add esp, 0x10
mov edi, eax
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x1013160b
mov ecx, ebx
call fcn.1012bee0
push ebx
call fcn.10205096
add esp, 4
cmp edi, 1
je 0x10131619
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
mov edx, dword [esi]
test edx, edx
mov ecx, dword [esi + 8]
je 0x1013162f
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x10131639
movzx eax, word [eax]
jmp 0x10131642
mov bl, 1
xor edi, edi
test ecx, ecx
jne 0x10131657
jmp 0x1013168d
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov edx, dword [esi]
xor ecx, ecx
cmp ax, 0xffff
mov edi, edx
cmove edi, ecx
sete bl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10131664
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10131671
movzx eax, word [eax]
jmp 0x10131680
mov edi, 0
cmp ax, 0xffff
jne 0x10131695
jmp 0x1013168d
mov byte [esi + 8], bl
mov dword [esi], edi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi]
mov bl, byte [esi + 8]
cmp ax, 0xffff
sete al
xor bl, al
mov edx, edi
jne 0x10131695
mov eax, dword [ebp + 0x18]
or byte [eax], 2
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [eax], edx
cmp byte [esi + 0x1b], 0
jns 0x101316ab
push dword [esi + 0x10]
call fcn.10205096
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x101316bc
push dword [esi + 0x20]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18