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

Disassembly:
sub esp, 0x44
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
push edi
push dword [esp + 0x58]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
call fcn.10037d30
mov dword [esp + 0x20], eax
xor eax, eax
push eax
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
push 0xffdc
push dword [esp + 0x24]
lea eax, [ebx + 2]
push 0x10002a40
push eax
push esi
push 0x10002410
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.1002cb60
mov ebx, eax
test ebx, ebx
jns 0x101068fc
cmp ebx, 0xfffff1f0
jne 0x10106a6e
xor eax, eax
mov ebx, eax
jmp 0x10106a6e
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ebx, eax
mov eax, dword [esp + 0x38]
push 0x5d
pop edx
push dword [esp + 0x58]
mov word [ecx + eax*2 + 2], dx
xor edx, edx
mov word [ecx + eax*2 + 4], dx
call fcn.10105495
test eax, eax
je 0x1010692f
mov eax, dword [esp + 0x14]
or dword [eax + 8], 0x2000
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x34]
shr eax, 1
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x34]
call fcn.10116750
mov dword [esp + 0x10], eax
cmp dword [esp + 0x44], ebx
je 0x10106964
mov ebx, 0xfffff3e4
jmp 0x10106a6e
mov esi, dword [esp + 0x28]
mov ecx, dword [esi]
lea eax, [ecx - 8]
cmp dword [ebp], eax
jbe 0x10106996
lea eax, [ecx + 0x400]
mov dword [esi], eax
add eax, eax
push eax
push dword [edi]
call fcn.10118344
pop ecx
pop ecx
test eax, eax
jne 0x10106994
mov ebx, 0xfffffc0d
jmp 0x10106a6e
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x101069bd
mov eax, dword [edi]
mov esi, 0x10011e30
mov ecx, dword [ebp]
lea edi, [eax + ecx*2]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add dword [ebp], 5
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
mov ecx, dword [ebp]
mov eax, dword [edi]
push 0x28
pop edx
push dword [esp + 0x1c]
mov word [eax + ecx*2], dx
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
inc ecx
mov dword [ebp], ecx
mov eax, dword [esi]
sub eax, ecx
push eax
mov eax, dword [edi]
lea eax, [eax + ecx*2]
push eax
push edx
jmp 0x10106a24
add dword [esi], 0x400
mov eax, dword [esi]
add eax, eax
push eax
push dword [edi]
call fcn.10118344
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x1010698a
mov eax, dword [esp + 0x24]
cmp eax, 0xa
jg 0x1010698a
push dword [esp + 0x1c]
inc eax
mov dword [edi], edx
mov ecx, dword [ebp]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
sub eax, ecx
push eax
lea eax, [edx + ecx*2]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x38]
call fcn.10116490
test eax, eax
je 0x101069e6
mov edx, dword [ebp]
mov eax, dword [edi]
lea ecx, [eax + edx*2]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x34]
jne 0x10106a44
sub ecx, esi
sar ecx, 1
add ecx, edx
mov dword [ebp], ecx
mov eax, dword [edi]
push 0x29
pop edx
mov word [eax + ecx*2], dx
mov eax, dword [esp + 0x2c]
inc dword [ebp]
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x44
ret 0x30