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

Disassembly:
sub esp, 0x54
mov eax, dword [0x102f0d80]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
mov ebp, dword [esp + 0x64]
xor eax, eax
cmp dword [esp + 0x68], 2
push esi
mov esi, dword [esp + 0x64]
sete al
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
push dword [esi + 0x914]
push eax
lea eax, [esi + 0x908]
push eax
lea eax, [esi + 0xab0]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.101e1590
push dword [esi + 0xaac]
lea eax, [esi + 0xab8]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.101e17a0
push dword [esi + 0x1048]
lea eax, [esp + 0x44]
push dword [esi + 0x924]
lea ebx, [ebp + 0x40]
push eax
push ebx
call fcn.101e10a0
add esp, 0x30
cmp dword [esi + 0x948], 1
jne 0x101db07e
mov byte [esi + 0xacf], 4
mov cl, byte [esi + 0xacf]
mov eax, dword [esi + 0x924]
cmp cl, 4
jge 0x101db0f8
xor edi, edi
test eax, eax
jle 0x101db0de
mov ebp, eax
lea ebx, [esi + 0x928]
movsx eax, cl
mov dword [esp + 0x1c], ebp
mov esi, eax
nop word [eax + eax]
movzx edx, word [ebx]
lea ebx, [ebx + 2]
movsx ecx, word [esp + edi*2 + 0x20]
movsx eax, dx
sub ecx, eax
imul ecx, esi
sar ecx, 2
add ecx, edx
mov word [esp + edi*2 + 0x40], cx
inc edi
cmp edi, ebp
jl 0x101db0b0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push dword [esi + 0x1048]
lea edi, [ebp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
push edi
call fcn.101e10a0
add esp, 0x10
jmp 0x101db108
add eax, eax
lea edi, [ebp + 0x20]
push eax
push ebx
push edi
call fcn.1011e240
add esp, 0xc
mov eax, dword [esi + 0x924]
add eax, eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x928]
push eax
call fcn.1011e240
add esp, 0xc
cmp dword [esi + 0x1040], 0
je 0x101db156
push 0xf852
push dword [esi + 0x924]
push edi
call fcn.101e0a20
push 0xf852
push dword [esi + 0x924]
lea eax, [ebp + 0x40]
push eax
call fcn.101e0a20
add esp, 0x18
cmp byte [esi + 0xacd], 2
jne 0x101db223
push dword [esi + 0x914]
movzx eax, byte [esi + 0xacc]
push dword [esi + 0x90c]
push ebp
push eax
movzx eax, word [esi + 0xaca]
push eax
call fcn.101e1430
movsx eax, byte [esi + 0xad0]
xor edx, edx
add esp, 0x14
mov ebx, dword [eax*4 + 0x102da65c]
cmp dword [esi + 0x914], edx
jle 0x101db1fb
xor edi, edi
movsx ecx, byte [esi + edx + 0xab4]
lea edi, [edi + 0xa]
inc edx
lea eax, [ebx + ecx*4]
add ecx, eax
movsx eax, byte [ecx]
shl ax, 7
mov word [edi + ebp + 0x56], ax
movsx eax, byte [ecx + 1]
shl ax, 7
mov word [edi + ebp + 0x58], ax
movsx eax, byte [ecx + 2]
shl ax, 7
mov word [edi + ebp + 0x5a], ax
movsx eax, byte [ecx + 3]
shl ax, 7
mov word [edi + ebp + 0x5c], ax
movsx eax, byte [ecx + 4]
shl ax, 7
mov word [edi + ebp + 0x5e], ax
cmp edx, dword [esi + 0x914]
jl 0x101db1a2
movsx eax, byte [esi + 0xad1]
pop edi
pop esi
movsx eax, word [eax*2 + 0x102d7134]
mov dword [ebp + 0x88], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1011bad5
add esp, 0x54
ret
mov eax, dword [esi + 0x914]
shl eax, 2
push eax
push 0
push ebp
call fcn.1011e7c0
mov eax, dword [esi + 0x914]
lea eax, [eax + eax*4]
add eax, eax
push eax
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.1011e7c0
mov ecx, dword [esp + 0x78]
add esp, 0x18
mov byte [esi + 0xad0], 0
mov dword [ebp + 0x88], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011bad5
add esp, 0x54
ret