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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x1029912c]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
mov eax, ecx
mov dword [esp + 0x58], edx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov dword [esp + 0x90], ecx
mov ecx, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0xa0], ecx
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], di
je 0x101553f4
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
jne 0x10155bf4
movzx eax, word [edx]
mov dword [esp + 0xa4], eax
cmp eax, 0x3f
ja 0x10155bf4
movzx ebx, ax
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x7c]
mov eax, ebx
movlpd qword [esp + 0x88], xmm0
bts ecx, eax
movlpd qword [esp + 0x48], xmm0
cmp eax, 0x20
mov byte [esp + 0x1c], 1
mov dword [esp + 0x28], ebx
cmovae edx, ecx
mov dword [esp + 0x38], edi
xor ecx, edx
mov dword [esp + 0x14], esi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae edx, ecx
add ecx, 0xffffffff
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x78]
adc edx, 0xffffffff
and eax, 0x800
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x98], eax
mov eax, edi
setne al
mov dword [esp + 0x18], ecx
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x68], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x64]
cmp esi, eax
ja 0x10155b80
jb 0x101554cb
cmp ecx, dword [esp + 0x80]
jae 0x10155b87
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x38], eax
jg 0x10155b7c
cmp dword [esp + 0x38], 0
jle 0x101554fa
mov ebx, dword [esp + 0x68]
or ebx, dword [edi + 8]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x74]
or ebx, dword [edi + 0xc]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
cmp edi, eax
jge 0x10155524
cmp word [esp + 0x98], 0
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + edi*4]
mov dword [esp + 0x34], edi
jne 0x10155b68
jmp 0x1015552f
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x34], edi
mov edx, dword [edi + 0x24]
test edx, 0x400
jne 0x10155b76
xor eax, eax
mov word [edi + 0x1e], ax
movzx eax, byte [edi + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x10155645
mov edx, dword [esp + 0x60]
add edx, 4
mov dword [esp + 0x20], edx
xor edi, edi
xor ebx, ebx
bts edi, eax
cmp eax, 0x20
cmovae ebx, edi
xor edi, ebx
cmp eax, 0x40
mov ecx, edi
cmovae ebx, edi
and ecx, dword [esp + 0x18]
mov eax, ebx
and eax, esi
or ecx, eax
jne 0x10155620
mov ecx, dword [edx]
call fcn.10115ac0
mov edx, eax
mov dword [esp + 0x48], edx
cmp byte [edx], 0x9e
jne 0x10155620
mov eax, dword [esp + 0x54]
cmp dword [edx + 0x1c], eax
jne 0x10155620
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x68]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x7c]
not eax
push eax
movsx eax, word [edx + 0x20]
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x54]
push eax
add ecx, 0x50
call fcn.10151790
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1015561c
movzx eax, word [esi + 0xc]
cmp eax, 1
jne 0x10155678
mov edx, dword [esp + 0x34]
xor ecx, ecx
movzx edx, word [edx + 0x28]
test edx, edx
je 0x10155674
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x30]
cmp esi, dword [eax]
je 0x10155670
inc ecx
add eax, 4
cmp ecx, edx
jl 0x10155610
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x20], 0x18
inc eax
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
cmp eax, ebx
jl 0x10155573
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x24]
test edx, 0x1000
jne 0x10155a03
test edx, 0x100
je 0x101556b8
mov dword [esp + 0x58], 0
mov eax, 1
mov dword [esp + 0x48], 0
jmp 0x101556e6
movzx eax, word [esi + 0xc]
cmp ecx, edx
jge 0x1015561c
test al, 0x82
je 0x101556a5
mov eax, dword [esp + 0x48]
cmp word [eax + 0x20], 0
jl 0x101556a5
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
push dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx]
call fcn.10115c80
add esp, 4
test eax, eax
je 0x1015561c
mov esi, dword [esp + 0x14]
or dword [esp + 0x18], edi
or esi, ebx
mov dword [esp + 0x14], esi
jmp 0x10155620
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x10155bf4
test byte [ecx + 0x38], 4
jne 0x10155bf4
movzx eax, word [ecx + 0x32]
cmp byte [ecx + 0x36], 0
mov dword [esp + 0x48], eax
movzx eax, word [ecx + 0x34]
setne byte [esp + 0x1c]
movzx eax, ax
xor cl, cl
xor edx, edx
mov byte [esp + 0x27], 0
mov byte [esp + 0x26], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x78], eax
test eax, eax
je 0x10155a03
mov dword [esp + 0x40], edx
nop
movzx esi, word [edi + 0x18]
mov bh, 1
mov byte [esp + 0x13], bh
cmp edx, esi
jge 0x10155786
movzx eax, word [edi + 0x2a]
cmp edx, eax
jl 0x10155786
mov ebx, dword [edi + 0x30]
mov eax, dword [esp + 0x84]
mov edi, dword [ebx + edx*4]
movzx ecx, word [edi + 0xc]
and eax, ecx
test ax, ax
je 0x1015575c
mov eax, dword [esp + 0x1c]
test ecx, 0x100
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x101559e6
test cl, 1
je 0x101557b4
mov edi, dword [edi]
inc edx
cmp edx, esi
jge 0x1015577e
mov ecx, dword [esp + 0x20]
inc ecx
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], edi
je 0x101557b0
inc edx
add ecx, 4
cmp edx, esi
jl 0x10155770
mov bh, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x101557ba
mov eax, dword [edi + 4]
movsx ecx, word [eax + edx*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x30], ecx
mov bl, byte [edx + eax]
mov eax, dword [edi + 0xc]
mov byte [esp + 0x13], bl
movsx eax, word [eax + 0x28]
cmp ecx, eax
jne 0x101557c6
jmp 0x101557bf
xor bh, bh
jmp 0x10155782
mov bh, byte [esp + 0x13]
jmp 0x10155786
mov byte [esp + 0x13], 0
or ecx, 0xffffffff
mov dword [esp + 0x30], ecx
cmp byte [esp + 0x1c], 0
je 0x101557f6
test ecx, ecx
js 0x101557f6
cmp edx, esi
jl 0x101557f6
mov eax, dword [edi + 0xc]
xor edi, edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
add ecx, ecx
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
cmove edx, edi
mov dword [esp + 0x1c], edx
xor edi, edi
test bh, bh
je 0x10155917
mov edx, dword [esp + 0x60]
add edx, 4
mov dword [esp + 0x5c], edx
nop dword [eax + eax]
cmp edi, dword [esp + 0x28]
jge 0x10155917
xor ecx, ecx
mov eax, edi
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
mov dword [esp + 0x3c], esi
cmp eax, 0x40
mov dword [esp + 0x88], ecx
mov eax, esi
mov esi, dword [esp + 0x30]
cmovae eax, ecx
and ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x10155907
mov ecx, dword [edx]
test ecx, ecx
je 0x10155880
nop dword [eax]
mov eax, dword [ecx + 4]
test eax, 0x1000
je 0x10155880
test eax, 0x40000
je 0x10155879
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x1015587c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x10155860
mov al, byte [ebp + 0xc]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp esi, 0xffffffff
jl 0x101558a8
cmp byte [ecx], 0x9e
jne 0x10155907
mov eax, dword [esp + 0x54]
cmp dword [ecx + 0x1c], eax
jne 0x10155907
movsx eax, word [ecx + 0x20]
cmp eax, esi
jmp 0x101558c9
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
push dword [esp + 0x54]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.1011cfc0
mov edx, dword [esp + 0x60]
add esp, 4
test eax, eax
jne 0x10155907
cmp esi, 0xffffffff
je 0x10155948
mov eax, dword [esp + 0x44]
mov edx, dword [edx]
mov esi, dword [eax]
mov ecx, esi
call fcn.10115af0
test eax, eax
jne 0x101558e8
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x58]
mov bh, bl
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call fcn.100e33b0
test eax, eax
je 0x10155944
mov edx, dword [esp + 0x5c]
add edx, 0x18
inc edi
mov dword [esp + 0x5c], edx
test bh, bh
jne 0x10155810
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1015592a
mov eax, dword [esp + 0x48]
movzx eax, ax
cmp ecx, eax
jge 0x1015592f
mov byte [esp + 0x1c], 0
cmp byte [esp + 0x2c], 0
je 0x10155a03
mov byte [esp + 0x1c], 1
jmp 0x10155a0e
mov esi, dword [esp + 0x30]
test byte [ebp + 0xc], 0x40
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
lea eax, [edx + 1]
mov word [ecx + 0x1e], ax
jne 0x101559b5
cmp byte [esp + 0x27], 0
lea eax, [edi + edi*2]
mov ecx, dword [esp + 0x60]
mov al, byte [ecx + eax*8 + 0x10]
je 0x1015597d
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x26]
cmp cl, al
jne 0x10155917
jmp 0x101559b5
xor al, byte [esp + 0x13]
mov byte [esp + 0x26], al
je 0x101559b0
mov eax, dword [esp + 0x38]
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0xa0]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [esp + 0x27], 1
mov ecx, dword [esp + 0x2c]
cmp esi, 0xffffffff
mov eax, 1
movzx ecx, cl
cmove ecx, eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
add dword [esp + 0x40], 0x18
inc edx
mov dword [esp + 0x20], edx
cmp edx, dword [esp + 0x78]
jge 0x1015592f
mov edi, dword [esp + 0x34]
jmp 0x10155710
cmp byte [esp + 0x1c], 0
je 0x10155b54
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x28]
or eax, dword [edi + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
or eax, dword [edi + 0xc]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x3c], eax
test ebx, ebx
je 0x10155b5c
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x28]
add ebx, 4
mov dword [esp + 0x2c], ebx
nop dword [eax]
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
mov ecx, esi
cmovae edi, esi
and ecx, dword [esp + 0x18]
mov eax, edi
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x10155b28
mov ebx, dword [ebx]
test ebx, ebx
je 0x10155a94
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.10150ef0
mov ecx, edx
jmp 0x10155aa5
xorps xmm0, xmm0
movlpd qword [esp + 0x78], xmm0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], eax
or eax, ecx
mov dword [esp + 0x40], ecx
jne 0x10155af2
mov byte [esp + 0xbc], 1
mov dword [esp + 0xac], fcn.10118000
mov dword [esp + 0xb0], 0x10117fa0
mov dword [esp + 0xc0], eax
test ebx, ebx
je 0x10155af2
mov edx, ebx
lea ecx, [esp + 0xa8]
call fcn.10113210
cmp byte [esp + 0xbc], 0
je 0x10155b24
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
not ecx
and ecx, dword [esp + 0x48]
not eax
and eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
or ecx, eax
mov ecx, dword [esp + 0x18]
jne 0x10155b2c
or ecx, esi
mov esi, dword [esp + 0x14]
or esi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
jmp 0x10155b30
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
add dword [esp + 0x2c], 0x18
inc eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
cmp eax, edx
jl 0x10155a50
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
jmp 0x10155b64
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
inc dword [esp + 0x38]
test dl, dl
jne 0x101554b0
jmp 0x10155b7c
cmp byte [edi + 0x1d], 0
jne 0x10155b8d
mov eax, dword [esp + 0x64]
cmp ecx, dword [esp + 0x80]
jne 0x10155ba9
cmp esi, eax
jne 0x10155ba9
mov al, byte [esp + 0xa4]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x1c], 0
jne 0x10155c22
dec ebx
test ebx, ebx
jle 0x10155bf4
mov edi, dword [esp + 0x14]
nop dword [eax]
xor ecx, ecx
xor edx, edx
mov eax, ebx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
mov eax, ecx
adc edx, 0xffffffff
and eax, dword [esp + 0x18]
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x10155bef
cmp esi, edx
je 0x10155c0b
dec ebx
test ebx, ebx
jg 0x10155bc0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc4]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret