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

Disassembly:
sub esp, 0x68
mov eax, dword [0x102f0d80]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
mov dword [esp + 0x18], esi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push dword [ecx + 0x24]
mov eax, dword [eax + 0x2764]
mov edi, dword [ecx + 0x240]
mov dword [esp + 0x3c], eax
call fcn.1015fdd0
mov ecx, dword [esi]
add esp, 4
mov edx, dword [ecx + 0x244]
cmp eax, edx
cmovb edx, eax
cmp edi, edx
mov dword [esp + 0x2c], edx
mov eax, edx
mov edx, dword [esi + 4]
cmovb eax, edi
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
mov eax, dword [edx + 0x2688]
mov dword [esp + 0x64], eax
cmp dword [ecx + 0x10], 0
je 0x10159197
cmp dword [ecx + 0x14], 0
je 0x101590d1
cmp dword [edx + 0x25c8], 0
je 0x101590d1
mov eax, dword [edx + 0x25cc]
xor edx, edx
test eax, eax
sete dl
test eax, eax
mov eax, 0
setne al
jmp 0x101590d8
mov edx, 1
mov eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1015918e
cmp dword [ecx + 0x1c], 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jae 0x10159137
xor ebx, ebx
cmp dword [ecx + 0x24], ebx
jbe 0x1015918e
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [eax + ebx*4]
sub edx, dword [ecx + ebx*4]
mov eax, dword [edi + 0x28]
mov dword [eax + ebx*4], edx
mov edi, dword [esi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov edx, dword [eax + ebx*4]
add edx, dword [ecx + ebx*4]
mov eax, dword [edi + 0x24]
sar edx, 1
mov dword [eax + ebx*4], edx
inc ebx
mov ecx, dword [esi]
cmp ebx, dword [ecx + 0x24]
jb 0x10159101
jmp 0x1015918e
xor ebp, ebp
nop dword [eax]
mov ebx, dword [esi + 4]
mov eax, dword [ebx + 8]
mov eax, dword [eax + ebp*4]
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
cdq
sub eax, ecx
mov ecx, dword [ebx + 0x2c]
sbb edx, edi
mov dword [ecx + ebp*8], eax
mov dword [ecx + ebp*8 + 4], edx
mov ebx, dword [esi + 4]
mov eax, dword [ebx + 8]
mov eax, dword [eax + ebp*4]
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
cdq
add edi, eax
mov eax, dword [ebx + 0x24]
adc ecx, edx
shrd edi, ecx, 1
mov dword [eax + ebp*4], edi
inc ebp
mov ecx, dword [esi]
cmp ebp, dword [ecx + 0x24]
jbe 0x10159140
cmp dword [esp + 0x10], 0
je 0x101591fc
jmp 0x101591a7
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
xor edi, edi
cmp dword [ecx + 0x18], edi
jbe 0x101591fc
xor ebx, ebx
mov eax, dword [esi + 4]
push dword [ecx + 0x24]
push dword [eax + edi*4 + 4]
call fcn.10157390
mov ecx, dword [esi]
lea ebx, [ebx + 0x360]
add esp, 8
mov edx, dword [ecx + 0x1c]
cmp eax, edx
cmovbe edx, eax
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x150], edx
mov eax, dword [esi + 4]
mov dword [eax + ebx - 0x60], edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 4]
sub ecx, edx
mov dword [eax + edi*4 + 0xdc], ecx
inc edi
mov ecx, dword [esi]
cmp edi, dword [ecx + 0x18]
jb 0x101591b0
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1015934b
xor ebx, ebx
mov edx, 0x24
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edx
nop dword [eax]
mov eax, dword [esi]
cmp dword [eax + 0x1c], 0x20
jb 0x101592d7
test ebx, ebx
je 0x101592d7
mov ebx, dword [eax + 0x24]
xorps xmm0, xmm0
mov eax, dword [esi + 4]
xor edi, edi
mov dword [esp + 0x1c], ebx
movlpd qword [esp + 0x3c], xmm0
mov ecx, dword [eax + edx]
mov ebp, dword [eax + 0x2c]
mov dword [esp + 0x34], ecx
test ebx, ebx
je 0x101592a1
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
nop
mov eax, ecx
and eax, 1
or eax, 0
jne 0x10159277
or ecx, dword [ebp + edi*8]
or edx, dword [ebp + edi*8 + 4]
inc edi
cmp edi, ebx
jb 0x10159260
mov eax, ecx
or eax, edx
je 0x101592a1
mov eax, ecx
xor ebx, ebx
and eax, 1
or eax, ebx
jne 0x101592d1
shrd ecx, edx, 1
inc ebx
mov eax, ecx
sar edx, 1
and eax, 1
or eax, 0
je 0x10159288
test ebx, ebx
je 0x101592d1
xor edi, edi
jmp 0x101592ae
xor edi, edi
mov ebx, 1
cmp dword [esp + 0x1c], edi
jbe 0x101592d1
mov esi, dword [esp + 0x34]
mov eax, dword [ebp + edi*8]
mov ecx, ebx
mov edx, dword [ebp + edi*8 + 4]
call fcn.1011cfc0
inc edi
mov dword [esi], eax
lea esi, [esi + 4]
cmp edi, dword [esp + 0x1c]
jb 0x101592b2
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
jmp 0x101592ea
push dword [eax + 0x24]
mov eax, dword [esi + 4]
push dword [edx + eax]
call fcn.10157390
add esp, 8
mov ebx, eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov edx, dword [ecx + 0x1c]
cmp ebx, edx
cmovbe edx, ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ebp + 0x1fb0], edx
xor ecx, ecx
mov eax, dword [esi + 4]
test ebx, ebx
setne cl
inc ebx
mov dword [esp + 0x20], ebx
mov dword [eax + ebp + 0x1e00], edx
add ebp, 0x360
mov eax, dword [esi]
mov dword [esp + 0x28], ebp
add ecx, dword [eax + 0x1c]
mov eax, dword [esi + 4]
sub ecx, edx
mov edx, dword [esp + 0x24]
mov dword [edx + eax + 0xd8], ecx
add edx, 4
mov dword [esp + 0x24], edx
cmp edx, 0x2c
jb 0x10159220
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x10], 0
je 0x10159418
mov ecx, dword [esi]
xor edi, edi
cmp dword [ecx + 0x18], edi
jbe 0x10159418
mov edx, dword [esi + 4]
lea ebx, [edi + 1]
nop dword [eax]
cmp dword [ecx + 0x258], 0
je 0x1015938f
test ebx, ebx
je 0x1015938f
lea eax, [edi + 1]
cmp eax, dword [ecx + 0x18]
jne 0x1015938f
mov dword [edx + 0x2764], 1
mov ecx, dword [esi + 4]
lea eax, [edi + 0x964]
lea eax, [ecx + eax*4]
push eax
lea eax, [edi + 0x95a]
lea eax, [ecx + eax*4]
push eax
lea eax, [edi*8 + 0x104]
add eax, ecx
push eax
lea eax, [edi + 0x49d]
lea eax, [ecx + eax*8]
push eax
lea eax, [edi + 0x463]
lea eax, [ecx + eax*8]
push eax
push dword [ecx + edi*4 + 4]
lea eax, [esp + 0x64]
push dword [ecx + edi*4 + 0xdc]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x54]
push esi
call fcn.10158800
add esp, 0x2c
test eax, eax
je 0x10159552
mov edx, dword [esi + 4]
xor ecx, ecx
mov eax, dword [edx + edi*4 + 0x2568]
lea eax, [eax + edi*2]
imul eax, eax, 0x1b0
cmp dword [eax + edx + 0x158], ecx
cmovne ebx, ecx
mov ecx, dword [esi]
inc edi
cmp edi, dword [ecx + 0x18]
jb 0x10159370
test ebp, ebp
je 0x101596a7
xor ebx, ebx
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esi + 4]
mov ebp, dword [edi + ecx + 0xfc]
cmp ebp, 0x20
ja 0x10159445
mov edx, dword [edi + ecx + 0x24]
jmp 0x10159448
mov edx, dword [ecx + 0x2c]
lea eax, [ecx + 0x25b0]
add eax, edi
push eax
lea eax, [ecx + 0x2588]
add eax, edi
push eax
lea eax, [ecx + 0x144]
add eax, ebx
push eax
lea eax, [ecx + 0x2528]
add eax, ebx
push eax
lea eax, [ecx + 0x2358]
add eax, ebx
push eax
push edx
push ebp
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x54]
push esi
call fcn.10158800
add esp, 0x2c
test eax, eax
je 0x10159552
add edi, 4
add ebx, 8
cmp edi, 8
jb 0x10159430
mov eax, dword [esi]
xor ebx, ebx
mov edi, dword [esi + 4]
xor ebp, ebp
mov eax, dword [eax + 0x14]
mov dword [esp + 0x18], eax
test eax, eax
je 0x101594cb
cmp dword [edi + 0x25c8], ebx
jbe 0x101594cb
mov edi, dword [edi + 0x25cc]
neg edi
sbb edi, edi
and edi, 3
jmp 0x1015952c
mov edx, dword [edi + 0x2594]
mov eax, dword [edi + 0x2590]
mov ecx, dword [edi + 0x25b4]
lea ebx, [eax + edx]
add eax, ecx
mov dword [esp + 0x40], eax
lea eax, [ecx + edx]
mov dword [esp + 0x44], eax
xor edx, edx
mov eax, dword [edi + 0x25b0]
add eax, ecx
mov dword [esp + 0x3c], ebx
xor ecx, ecx
mov dword [esp + 0x48], eax
cmp dword [esp + 0x18], ecx
setne cl
lea ecx, [ecx*2 + 1]
nop
mov eax, dword [esp + ecx*4 + 0x3c]
mov edi, ecx
cmp eax, ebx
cmovae edi, edx
inc ecx
cmp eax, ebx
mov edx, edi
cmovae eax, ebx
mov ebx, eax
cmp ecx, 3
jle 0x10159510
xor ebx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x58], edi
push dword [eax + 0x25c0]
lea eax, [esp + 0x50]
push eax
call fcn.1016ae20
add esp, 8
test eax, eax
jne 0x10159567
mov eax, dword [esi]
mov dword [eax], 7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1011bad5
add esp, 0x68
ret
cmp edi, 3
ja case.default.0x10159570
jmp dword [edi*4 + 0x10159794]
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x2568], 0x1b0
lea ebp, [ecx + 0x4b8]
imul eax, dword [ecx + 0x256c], 0x1b0
add ebx, 0x158
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xdc]
mov edi, dword [eax + 0xe0]
jmp 0x10159662
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x2568], 0x1b0
lea ebp, [ecx + 0x1fb8]
imul eax, dword [ecx + 0x258c], 0x1b0
add ebx, 0x158
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xdc]
mov edi, dword [eax + 0x100]
jmp 0x10159662
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x258c], 0x1b0
lea ebp, [ecx + 0x4b8]
imul eax, dword [ecx + 0x256c], 0x1b0
add ebx, 0x1fb8
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x100]
mov edi, dword [eax + 0xe0]
jmp 0x10159662
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x2588], 0x1b0
lea ebp, [ecx + 0x1fb8]
imul eax, dword [ecx + 0x258c], 0x1b0
add ebx, 0x1c58
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xfc]
mov edi, dword [eax + 0x100]
jmp 0x10159662
xor ebx, ebx
xor ebp, ebp
xor edi, edi
xor ecx, ecx
mov eax, dword [esi + 4]
push dword [eax + 0x25c0]
push ebx
push ecx
push dword [esp + 0x58]
push esi
call fcn.10156800
add esp, 0x14
test eax, eax
je 0x10159552
mov eax, dword [esi + 4]
push dword [eax + 0x25c0]
push ebp
push edi
push dword [esp + 0x58]
push esi
call fcn.10156800
add esp, 0x14
test eax, eax
je 0x10159552
jmp 0x10159734
mov eax, dword [esi + 4]
push dword [eax + 0x25c0]
lea eax, [esp + 0x50]
push eax
call fcn.1016ae20
mov ecx, dword [esi]
add esp, 8
test eax, eax
jne 0x101596dc
pop edi
pop esi
pop ebp
mov dword [ecx], 7
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1011bad5
add esp, 0x68
ret
xor edi, edi
cmp dword [ecx + 0x18], edi
jbe 0x10159734
mov ebx, 0xdc
nop dword [eax + eax]
mov ecx, dword [esi + 4]
mov eax, dword [ebx + ecx + 0x248c]
push dword [ecx + 0x25c0]
lea eax, [eax + edi*2]
imul eax, eax, 0x1b0
add eax, 0x158
add eax, ecx
push eax
push dword [ebx + ecx]
push dword [esp + 0x58]
push esi
call fcn.10156800
add esp, 0x14
test eax, eax
je 0x10159552
mov eax, dword [esi]
inc edi
add ebx, 4
cmp edi, dword [eax + 0x18]
jb 0x101596f0
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x10159760
mov eax, dword [esi + 4]
inc dword [eax + 0x25c8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x25c8]
cmp eax, dword [ecx + 0x25c4]
jb 0x10159760
mov dword [ecx + 0x25c8], 0
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x58]
pop edi
mov dword [ecx + 0x25cc], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
mov dword [eax + 0x2764], ecx
mov eax, 1
mov ecx, dword [esp + 0x68]
pop ebx
xor ecx, esp
call fcn.1011bad5
add esp, 0x68
ret