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

Disassembly:
sub esp, 0x238
mov eax, dword [0x1032e6c0]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x240]
push ebx
mov ebx, dword [esp + 0x240]
mov dword [esp + 0x60], eax
push ebp
push esi
mov eax, dword [ebx]
lea esi, [ebx + 0x2678]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x7c], eax
push edi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], esi
lea edi, [eax*8 + 0x102c06b0]
mov eax, 0x24924925
mul ecx
mov eax, dword [edi]
sub ecx, edx
mov dword [esp + 0x14], edi
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [esp + 0x7c], ecx
cmp eax, 0x159b
je 0x1015982d
lea ecx, [eax + 0x102bf110]
xor esi, esi
mov al, byte [ecx]
xor ebp, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x5c], esi
test al, al
je 0x10159810
xor bl, bl
mov byte [esp + 0x13], bl
cmp al, 0x20
jne 0x10158fd6
nop
inc ecx
cmp byte [ecx], 0x20
je 0x10158fd0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x70]
push ecx
call fcn.1015ac80
add esp, 0x10
mov ecx, eax
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x64], ecx
je 0x10159662
test byte [edi + 4], 1
mov eax, 0
mov edx, dword [esp + 0x1c]
setne al
xor esi, esi
add eax, 0x7fffffff
mov dword [esp + 0x58], esi
test edx, edx
je 0x1015937c
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
nop dword [eax]
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x1015936b
push 1
push ecx
push dword [esp + 0x74]
call fcn.1014abc0
mov ecx, dword [esp + 0x78]
add esp, 0xc
mov ecx, dword [ecx + 0x54]
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x94], ecx
movups xmmword [esp + 0x84], xmm0
test eax, eax
jne 0x1015935f
mov edx, dword [esp + 0x84]
mov eax, edx
shr eax, 0x10
cmp ax, 2
jle 0x1015935f
or ebx, 0xffffffff
movsx eax, dx
xor edx, edx
mov dword [esp + 0x38], ebx
xor ecx, ecx
mov dword [esp + 0x24], ebx
or edi, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edx
test eax, eax
jle 0x10159607
mov esi, dword [esp + 0x90]
lea eax, [edi + 1]
movsx edi, word [esi + edx*2]
mov dword [esp + 0x54], eax
cmp edi, eax
jle 0x10159158
mov edx, dword [esp + 0x14]
mov esi, eax
test byte [edx + 4], 3
mov edx, dword [esp + 0x88]
lea edx, [edx + eax*8]
jne 0x1015910d
add edx, 4
nop
test ebx, ebx
js 0x101590f2
mov eax, dword [edx]
cmp eax, ecx
jl 0x101590f2
cmp ebp, eax
jg 0x10159103
mov ebp, eax
jmp 0x10159103
mov eax, dword [esp + 0x5c]
mov ebx, esi
mov ecx, dword [edx]
cmp eax, ecx
cmovge eax, ecx
mov dword [esp + 0x5c], eax
inc esi
add edx, 8
cmp esi, edi
jle 0x101590e0
jmp 0x10159137
add edx, 4
test ebx, ebx
js 0x10159126
mov eax, dword [edx]
cmp eax, ecx
jg 0x10159126
cmp dword [esp + 0x5c], eax
jl 0x1015912f
mov dword [esp + 0x5c], eax
jmp 0x1015912f
mov ecx, dword [edx]
mov ebx, esi
cmp ebp, ecx
cmovle ebp, ecx
inc esi
add edx, 8
cmp esi, edi
jle 0x10159110
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x28], ebp
cmp ebx, dword [esp + 0x24]
jle 0x10159158
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edi
inc edx
mov dword [esp + 0x40], edx
cmp edx, dword [esp + 0x34]
jl 0x101590b2
test ebx, ebx
js 0x10159603
mov eax, dword [esp + 0x88]
or esi, 0xffffffff
mov ebp, dword [esp + 0x8c]
mov edx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [eax + ebx*8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x40], ebx
mov al, byte [eax + ebx]
and al, 3
cmp al, 1
cmove esi, ebx
mov edi, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
cmp edx, dword [esp + 0x38]
jle 0x101591b9
dec edx
jmp 0x101591bd
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x88]
mov esi, dword [eax + edx*8 + 4]
mov eax, esi
sub eax, ecx
jns 0x101591d2
mov eax, ecx
sub eax, esi
cmp eax, 5
jle 0x10159211
mov esi, dword [esp + 0x88]
mov ebp, dword [esp + 0x88]
mov edi, dword [esi + edx*8]
mov esi, edi
sub esi, dword [ebp + ebx*8]
mov ebp, dword [esp + 0x8c]
jns 0x10159203
mov esi, dword [esp + 0x88]
mov esi, dword [esi + ebx*8]
sub esi, edi
lea eax, [eax + eax*4]
shl eax, 2
cmp esi, eax
jle 0x1015922f
mov edi, dword [esp + 0x4c]
mov al, byte [edx + ebp]
and al, 3
mov dword [esp + 0x3c], edx
cmp al, 1
jne 0x1015922b
test edi, edi
mov dword [esp + 0x48], edx
cmovs edi, edx
mov dword [esp + 0x4c], edi
cmp edx, ebx
jne 0x101591b0
mov ebp, dword [esp + 0x40]
cmp ebp, dword [esp + 0x24]
jge 0x1015923c
inc ebp
jmp 0x10159240
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x88]
mov edx, dword [esi + ebp*8 + 4]
mov eax, edx
sub eax, ecx
jns 0x10159255
mov eax, ecx
sub eax, edx
cmp eax, 5
jle 0x10159275
mov esi, dword [esi + ebp*8]
mov edx, esi
mov edi, dword [esp + 0x18]
sub edx, edi
jns 0x1015926b
mov edx, edi
sub edx, esi
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x101592a2
mov eax, dword [esp + 0x8c]
mov esi, ebp
mov dword [esp + 0x34], esi
mov al, byte [eax + ebp]
and al, 3
cmp al, 1
jne 0x1015929c
mov edi, dword [esp + 0x48]
test edi, edi
mov dword [esp + 0x4c], ebp
cmovs edi, ebp
mov dword [esp + 0x48], edi
cmp ebp, ebx
jne 0x10159233
jmp 0x101592a6
mov esi, dword [esp + 0x34]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x14]
test byte [ebp + 4], 0x10
je 0x1015957e
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov ebp, dword [eax + 0x28]
mov eax, 0x51eb851f
mul ebp
mov eax, dword [esp + 0x88]
shr edx, 3
mov dword [esp + 0x74], edx
mov eax, dword [eax + esi*8]
mov esi, dword [esp + 0x88]
mov edi, dword [esi + edi*8]
mov esi, eax
sub esi, edi
sub edi, eax
test esi, esi
cmovns edi, esi
cmp edi, edx
mov edi, dword [esp + 0x34]
jge 0x10159597
mov eax, dword [esp + 0x24]
mov edx, edi
sub edx, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
add edx, 2
cmp edx, eax
jg 0x10159597
mov esi, dword [esp + 0x18]
shr ebp, 2
mov dword [esp + 0x70], ebp
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x54], eax
mov eax, ebx
nop word [eax + eax]
cmp eax, dword [esp + 0x38]
jle 0x10159339
dec eax
jmp 0x1015933d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x88]
mov edx, dword [edx + eax*8]
cmp edx, esi
jne 0x101593b3
cmp eax, ebx
jne 0x10159330
mov bl, byte [esp + 0x13]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc esi
mov dword [esp + 0x58], esi
cmp esi, edx
jb 0x10159030
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
cmp eax, 0x80000000
je 0x10159666
cmp eax, 0x7fffffff
je 0x10159666
test bl, bl
je 0x10159654
mov dword [esp + edx*4 + 0xac], eax
inc edx
mov dword [esp + 0x30], edx
jmp 0x10159666
cmp eax, ebx
je 0x1015934f
cmp edx, esi
mov esi, edi
mov dword [esp + 0x18], esi
setl byte [esp + 0x47]
xor al, al
mov byte [esp + 0x12], al
nop word [eax + eax]
test al, al
jne 0x101593f7
mov eax, dword [esp + 0x8c]
or ebp, 0xffffffff
mov esi, edi
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], esi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
cmove ebp, edi
mov dword [esp + 0x54], ebp
cmp edi, dword [esp + 0x24]
jge 0x10159400
inc edi
jmp 0x10159404
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x88]
mov eax, ecx
mov ebx, dword [edx + esi*8 + 4]
sub eax, ebx
jns 0x10159419
mov eax, ebx
sub eax, ecx
cmp eax, dword [esp + 0x70]
jle 0x1015942a
xor al, al
mov byte [esp + 0x12], al
jmp 0x101594ba
mov eax, dword [edx + edi*8 + 4]
mov edx, eax
sub edx, ebx
sub ebx, eax
test edx, edx
cmovns ebx, edx
mov dword [esp + 0x78], ebx
cmp ebx, 5
jle 0x10159470
mov edx, dword [esp + 0x88]
mov esi, dword [edx + esi*8]
mov eax, dword [edx + edi*8]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
lea eax, [ebx + ebx*4]
cmovns esi, edx
shl eax, 2
cmp esi, eax
mov esi, dword [esp + 0x18]
jg 0x10159470
xor al, al
mov byte [esp + 0x12], al
jmp 0x101594ba
mov eax, dword [esp + 0x8c]
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x10159489
test ebp, ebp
mov dword [esp + 0x54], edi
cmovs ebp, edi
mov eax, dword [esp + 0x88]
mov esi, dword [eax + esi*8]
mov edx, dword [eax + edi*8]
cmp esi, edx
mov eax, edx
setl bl
sub eax, esi
sub esi, edx
test eax, eax
cmovns esi, eax
cmp bl, byte [esp + 0x47]
jne 0x101594b2
cmp esi, dword [esp + 0x74]
jge 0x101594cf
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x12]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x101593d0
mov edi, dword [esp + 0x34]
jmp 0x1015959b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x78]
mov ebx, dword [eax + edx*8 + 4]
cmp edi, dword [esp + 0x24]
jge 0x101594eb
inc edi
jmp 0x101594ef
mov edi, dword [esp + 0x38]
mov ecx, dword [eax + edi*8 + 4]
mov eax, ecx
sub eax, ebx
jns 0x101594fd
mov eax, ebx
sub eax, ecx
cmp eax, 5
jle 0x1015952c
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
mov edx, dword [ecx + edx*8]
mov eax, dword [ecx + eax*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
lea eax, [esi + esi*4]
cmovns edx, ecx
shl eax, 2
cmp edx, eax
jle 0x10159558
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x54], edi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x10159549
test ebp, ebp
mov dword [esp + 0x54], edi
cmovs ebp, edi
cmp edi, dword [esp + 0x3c]
je 0x10159565
mov eax, dword [esp + 0x88]
jmp 0x101594e2
cmp edi, dword [esp + 0x38]
jle 0x10159561
dec edi
jmp 0x10159565
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov esi, ebp
mov edx, dword [esp + 0x88]
mov ebx, eax
mov ecx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x54]
jmp 0x101595aa
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x88]
jmp 0x101595ae
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0x14]
test esi, esi
js 0x101595d4
test eax, eax
js 0x101595d4
mov esi, dword [edx + esi*8]
mov eax, dword [edx + eax*8]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
cmovns esi, edx
cmp esi, dword [esp + 0x7c]
jle 0x101595d4
mov byte [esp + 0x12], 0
jmp 0x10159603
mov edx, dword [esp + 0x8c]
mov al, byte [edx + ebx]
and al, 3
cmp al, 1
jne 0x101595f4
mov al, byte [edx + edi]
and al, 3
cmp al, 1
jne 0x101595f4
mov byte [esp + 0x12], 0
jmp 0x10159603
test byte [ebp + 4], 4
mov byte [esp + 0x12], 1
jne 0x1015934f
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
test byte [edi + 4], 1
je 0x10159634
cmp ecx, eax
jle 0x1015964b
mov bl, byte [esp + 0x12]
mov eax, ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x10159367
cmp ecx, eax
jge 0x1015964b
mov bl, byte [esp + 0x12]
mov eax, ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x10159367
mov bl, byte [esp + 0x13]
jmp 0x10159367
mov dword [esp + esi*4 + 0x178], eax
inc esi
mov dword [esp + 0x50], esi
jmp 0x10159666
mov edx, dword [esp + 0x30]
mov al, byte [ecx]
test al, al
jne 0x10158fc4
mov ebx, dword [esp + 0x5c]
mov eax, edx
test esi, esi
jne 0x1015968a
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], edx
test eax, eax
je 0x10159810
mov esi, 1
cmp edx, esi
jbe 0x101596ce
mov eax, esi
test esi, esi
je 0x101596c9
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0xa8]
mov edx, dword [esp + eax*4 + 0xac]
cmp edx, ecx
jge 0x101596c5
mov dword [esp + eax*4 + 0xac], ecx
mov dword [esp + eax*4 + 0xa8], edx
sub eax, 1
jne 0x101596a0
mov edx, dword [esp + 0x30]
inc esi
cmp esi, edx
jb 0x10159693
mov edi, dword [esp + 0x50]
mov esi, 1
cmp edi, esi
jbe 0x10159751
nop
mov eax, esi
test esi, esi
je 0x10159715
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x174]
mov edx, dword [esp + eax*4 + 0x178]
cmp edx, ecx
jge 0x10159715
mov dword [esp + eax*4 + 0x178], ecx
mov dword [esp + eax*4 + 0x174], edx
sub eax, 1
jne 0x101596f0
inc esi
cmp esi, edi
jb 0x101596e0
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0xd8]
lea eax, [ecx*8 + 0x37]
add eax, ecx
lea esi, [edx + eax*4]
lea eax, [ecx + 1]
mov dword [edx + 0xd8], eax
mov edx, dword [esp + 0x30]
shr edi, 1
mov eax, dword [esp + edi*4 + 0x178]
test edx, edx
jne 0x10159788
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10159796
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0xd8], eax
test edi, edi
jne 0x1015973d
shr edx, 1
mov eax, dword [esp + edx*4 + 0xac]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10159796
shr edx, 1
mov dword [esi], eax
mov eax, dword [esp + edx*4 + 0xac]
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
cmp edi, edx
je 0x101597c7
mov eax, dword [esp + 0x14]
mov ecx, 0
test byte [eax + 4], 3
setne cl
xor eax, eax
cmp edi, edx
setg al
cmp eax, ecx
je 0x101597c7
lea eax, [edi + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov edi, dword [esp + 0x14]
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0
test byte [edi + 4], 1
je 0x101597ec
mov dword [esi + 0x20], 2
mov eax, 2
test byte [edi + 4], 2
je 0x101597f8
or eax, 4
mov dword [esi + 0x20], eax
test byte [edi + 4], 4
je 0x10159804
or eax, 8
mov dword [esi + 0x20], eax
test byte [edi + 4], 8
je 0x10159810
or eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [edi + 8]
add edi, 8
mov dword [esp + 0x14], edi
cmp eax, 0x159b
jne 0x10158fa0
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
mov ebp, dword [esi + 0xd8]
test ebp, ebp
je 0x10159908
xor eax, eax
test ebp, ebp
je 0x1015985f
lea ecx, [esi + 0xdc]
nop word [eax + eax]
mov dword [esp + eax*4 + 0x84], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x10159850
mov ebx, 1
cmp ebp, ebx
jbe 0x101598ba
nop dword [eax + eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x80]
test byte [eax + 0x20], 6
je 0x10159883
mov esi, dword [eax]
jmp 0x10159886
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x84]
test byte [ecx + 0x20], 6
je 0x10159897
mov edi, dword [ecx]
jmp 0x1015989a
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x101598b1
mov dword [esp + edx*4 + 0x84], eax
mov dword [esp + edx*4 + 0x80], ecx
sub edx, 1
jne 0x10159872
inc ebx
cmp ebx, ebp
jb 0x10159870
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0xd8]
xor edx, edx
sub eax, 1
je 0x10159904
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x84]
test byte [eax + 0x20], 6
je 0x101598e0
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x88]
test byte [ecx + 0x20], 6
je 0x101598f0
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x101598f8
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x101598d0
xor eax, eax
jmp 0x1015993c
mov edx, dword [ebx + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jbe 0x10159937
mov edi, dword [esp + 0x80]
lea ebx, [ecx + 0x42]
nop
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x10159931
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jb 0x10159920
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026465b
add esp, 0x238
ret