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

Disassembly:
sub esp, 0x54
mov eax, dword [0x10259b00]
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.1015d180
push dword [esi + 0xaac]
lea eax, [esi + 0xab8]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.1015d390
push dword [esi + 0x1048]
lea eax, [esp + 0x44]
push dword [esi + 0x924]
lea ebx, [ebp + 0x40]
push eax
push ebx
call fcn.1015cc90
add esp, 0x30
cmp dword [esi + 0x948], 1
jne 0x10156c6e
mov byte [esi + 0xacf], 4
mov cl, byte [esi + 0xacf]
mov eax, dword [esi + 0x924]
cmp cl, 4
jge 0x10156ce8
xor edi, edi
test eax, eax
jle 0x10156cce
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 0x10156ca0
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.1015cc90
add esp, 0x10
jmp 0x10156cf8
add eax, eax
lea edi, [ebp + 0x20]
push eax
push ebx
push edi
call fcn.100a1aa0
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.100a1aa0
add esp, 0xc
cmp dword [esi + 0x1040], 0
je 0x10156d46
push 0xf852
push dword [esi + 0x924]
push edi
call fcn.1015c610
push 0xf852
push dword [esi + 0x924]
lea eax, [ebp + 0x40]
push eax
call fcn.1015c610
add esp, 0x18
cmp byte [esi + 0xacd], 2
jne 0x10156e13
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.1015d020
movsx eax, byte [esi + 0xad0]
xor edx, edx
add esp, 0x14
mov ebx, dword [eax*4 + 0x1024ba3c]
cmp dword [esi + 0x914], edx
jle 0x10156deb
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 0x10156d92
movsx eax, byte [esi + 0xad1]
pop edi
pop esi
movsx eax, word [eax*2 + 0x10248514]
mov dword [ebp + 0x88], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1009fd88
add esp, 0x54
ret
mov eax, dword [esi + 0x914]
shl eax, 2
push eax
push 0
push ebp
call fcn.100a2020
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.100a2020
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.1009fd88
add esp, 0x54
ret