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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
xor esi, esi
mov dword [esp + 0x38], edx
mov eax, ecx
xorps xmm0, xmm0
push edi
mov dword [esp + 0x40], eax
movlpd qword [esp + 0x48], xmm0
cmp word [ebp + 0x10], si
je 0x100afc78
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x100b059c
movzx eax, word [edx]
mov dword [esp + 0x30], eax
cmp eax, 0x3f
ja 0x100b059c
movzx eax, ax
xor ecx, ecx
bts ecx, eax
mov edi, dword [esp + 0x4c]
xor edx, edx
mov ebx, dword [esp + 0x48]
cmp eax, 0x20
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x50], xmm0
cmovae edx, ecx
mov byte [esp + 0x1c], 1
xor ecx, edx
mov dword [esp + 0x10], edi
cmp eax, 0x40
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0xc]
cmovae edx, ecx
add ecx, 0xffffffff
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x1c]
adc edx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x78], edx
neg eax
sbb eax, eax
neg eax
add eax, 0x182
xor edx, edx
movzx eax, ax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp + 0x60], eax
nop dword [eax]
mov eax, dword [esp + 0x78]
cmp edi, eax
ja 0x100b0517
jb 0x100afd38
cmp ebx, dword [esp + 0x7c]
jae 0x100b051b
movzx eax, word [ebp + 0x10]
cmp edx, eax
jg 0x100b053e
test edx, edx
jle 0x100afd62
mov edi, dword [esp + 0x60]
or edi, dword [esi + 8]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x64]
or edi, dword [esi + 0xc]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x10]
cmp edx, eax
jge 0x100afd83
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
test eax, 0x800
jne 0x100b0506
jmp 0x100afd8d
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
mov edx, dword [esi + 0x2c]
test edx, 0x400
jne 0x100b052c
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x100afdb0
xor eax, eax
mov word [esi + 0x1e], ax
movzx eax, byte [esi + 0x10]
mov ebx, dword [esp + 0x30]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x68], eax
movzx eax, bx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x100afef3
mov eax, dword [esp + 0x3c]
add eax, 8
mov dword [esp + 0xc], eax
mov esi, eax
nop dword [eax]
mov eax, ecx
xor edx, edx
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x50], ecx
cmovae edx, ecx
and ecx, ebx
mov eax, edx
mov dword [esp + 0x2c], edx
and eax, edi
or ecx, eax
jne 0x100afecd
mov esi, dword [esi]
test esi, esi
je 0x100afec9
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x100afe52
test eax, 0x80000
je 0x100afe49
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x100afe4c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x100afe30
jmp 0x100afec9
mov al, byte [esi]
cmp al, 0xa7
je 0x100afe5c
cmp al, 0xa9
jne 0x100afec9
mov edx, dword [esp + 0x68]
cmp dword [esi + 0x1c], edx
jne 0x100afec9
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x6c]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x50]
push eax
lea ecx, [ecx + 0x50]
call fcn.100aad90
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100afec5
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x100aff29
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x100aff25
mov eax, dword [eax + 0x38]
cmp edi, dword [eax]
je 0x100aff25
inc ecx
add eax, 4
cmp ecx, edx
jl 0x100afeb5
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
add esi, 0x14
mov edx, dword [esp + 0x30]
inc ecx
movzx eax, dx
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], esi
cmp ecx, eax
jl 0x100afdf0
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 0x2c]
test edx, 0x1000
jne 0x100b03be
test edx, 0x100
je 0x100afff5
mov dword [esp + 0x5c], 0
mov eax, 1
mov dword [esp + 0x50], 0
jmp 0x100b0032
cmp ecx, edx
jge 0x100afec1
test bl, 0x82
je 0x100affbf
cmp word [esi + 0x20], 0
jl 0x100affbf
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.10056330
mov ebx, eax
test ebx, ebx
jne 0x100aff5b
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov eax, dword [edi]
test dword [eax + 4], 0x400
je 0x100aff6e
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x100aff74
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x200
jne 0x100aff97
test edi, edi
je 0x100aff8a
test dword [edi + 4], 0x200
jne 0x100aff95
mov ecx, esi
call fcn.10056330
test eax, eax
jne 0x100affa6
mov edx, edi
mov ecx, esi
call fcn.10056330
test eax, eax
je 0x100afec1
mov edi, dword [eax]
mov edx, dword [ebx]
sub edi, edx
nop dword [eax]
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x100affdc
test eax, eax
jne 0x100afff2
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
or ebx, dword [esp + 0x50]
or edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
jmp 0x100afec9
movzx ecx, byte [eax + 0x1012c958]
movzx eax, byte [esi + 0x1012c958]
sub ecx, eax
jne 0x100afec1
inc edx
jmp 0x100affb0
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x100b059c
test byte [ecx + 0x38], 4
jne 0x100b059c
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x32]
mov dword [esp + 0x50], eax
movzx eax, word [ecx + 0x34]
je 0x100b002d
mov byte [esp + 0x1c], 1
test edx, 0x8000
je 0x100b0032
mov byte [esp + 0x1c], 0
xor cl, cl
movzx eax, ax
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x48], eax
test eax, eax
je 0x100b03be
xor edx, edx
mov dword [esp + 0x2c], edx
nop dword [eax]
movzx ebx, word [esi + 0x18]
mov byte [esp + 0x21], 1
cmp ecx, ebx
jge 0x100b00da
movzx eax, word [esi + 0x32]
cmp ecx, eax
jl 0x100b00da
mov edi, dword [esi + 0x38]
mov eax, dword [esp + 0x74]
mov esi, dword [edi + ecx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x100b00a8
mov eax, dword [esp + 0x1c]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x100b039b
test cl, 1
mov ecx, dword [esp + 0xc]
je 0x100b00da
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x100b00da
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x100b00d0
inc edx
add ecx, 4
cmp edx, ebx
jl 0x100b00c0
jmp 0x100b00d6
xor al, al
mov byte [esp + 0x21], al
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x100b0106
mov eax, dword [esi + 4]
movsx edx, word [eax + ecx*2]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], edx
mov al, byte [ecx + eax]
and al, 1
mov byte [esp + 0x1b], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x20]
cmp edx, eax
jne 0x100b0112
jmp 0x100b010b
mov byte [esp + 0x1b], 0
or edx, 0xffffffff
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x1c]
test al, al
je 0x100b0149
test edx, edx
js 0x100b013a
cmp ecx, ebx
jl 0x100b0149
mov eax, dword [esi + 0xc]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x100b0149
mov byte [esp + 0x1c], 0
jmp 0x100b0149
xor ecx, ecx
movzx eax, al
cmp edx, 0xfffffffe
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov bl, byte [esp + 0x21]
xor edi, edi
test bl, bl
je 0x100b0289
mov esi, dword [esp + 0x3c]
add esi, 8
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x30]
movzx eax, cx
cmp edi, eax
jge 0x100b0289
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0x10]
or edx, ecx
jne 0x100b0279
mov ecx, dword [esi]
test ecx, ecx
je 0x100b0279
mov eax, dword [ecx + 4]
test eax, 0x82000
je 0x100b01c7
test eax, 0x80000
je 0x100b01bb
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 8]
jmp 0x100b01be
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x100b01a2
jmp 0x100b0279
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x38]
and al, 0xc0
neg al
sbb al, al
and bl, al
mov bh, bl
cmp edx, 0xffffffff
jl 0x100b0204
mov al, byte [ecx]
cmp al, 0xa7
je 0x100b01eb
cmp al, 0xa9
jne 0x100b0279
mov eax, dword [esp + 0x68]
mov bl, bh
cmp dword [ecx + 0x1c], eax
jne 0x100b0279
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x100b0279
jmp 0x100b0227
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
push dword [esp + 0x68]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 8]
call fcn.1005fe70
add esp, 4
test eax, eax
jne 0x100b0279
mov edx, dword [esp + 0x38]
cmp edx, 0xffffffff
je 0x100b02cb
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.10056330
test eax, eax
jne 0x100b024c
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + ecx*4]
sub esi, edx
nop
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x100b02b6
test ecx, ecx
jne 0x100b02c8
mov bl, bh
test ecx, ecx
je 0x100b02cb
mov esi, dword [esp + 0x34]
add esi, 0x14
inc edi
mov dword [esp + 0x34], esi
test bl, bl
jne 0x100b0162
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100b029c
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x100b02a1
mov byte [esp + 0x1c], 0
cmp byte [esp + 0x24], 0
je 0x100b03be
mov byte [esp + 0x1c], 1
jmp 0x100b03c9
movzx ecx, byte [ecx + 0x1012c958]
movzx eax, byte [eax + 0x1012c958]
sub ecx, eax
jne 0x100b026f
inc edx
jmp 0x100b0260
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
je 0x100b02e5
lea eax, [ebx + 1]
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x100b0341
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
mov al, byte [ecx + eax*4 + 0x10]
and al, 1
cmp byte [esp + 0x23], 0
je 0x100b0311
mov cl, byte [esp + 0x1b]
xor cl, byte [esp + 0x22]
cmp cl, al
jne 0x100b0289
jmp 0x100b0341
xor al, byte [esp + 0x1b]
mov byte [esp + 0x22], al
je 0x100b033c
mov eax, dword [esp + 0x44]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x23], 1
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 2
je 0x100b0362
movzx eax, word [esi + 0x18]
cmp ebx, eax
jne 0x100b0289
or dword [esi + 0x2c], 0x80000
cmp dword [esp + 0x38], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
xor eax, eax
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x14], eax
or dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
add edx, 0x14
inc ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x48]
jge 0x100b02a1
mov esi, dword [esp + 0x28]
jmp 0x100b0060
cmp byte [esp + 0x1c], 0
je 0x100b04f2
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x6c]
or eax, dword [esi + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
or eax, dword [esi + 0xc]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x34], eax
cmp word [esp + 0x30], ax
je 0x100b04f6
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add ebx, 8
mov dword [esp + 0x24], ebx
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 + 0x14]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x100b04d1
mov ebx, dword [ebx]
test ebx, ebx
je 0x100b0445
mov ecx, dword [esp + 0x40]
mov edx, ebx
lea ecx, [ecx + 0x1f0]
call fcn.100aa4e0
mov ecx, edx
jmp 0x100b0456
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x2c], ecx
jne 0x100b04ad
mov dword [esp + 0x90], fcn.10058d00
mov eax, 1
mov word [esp + 0xa0], ax
mov dword [esp + 0x94], 0x10058bb0
mov dword [esp + 0xa4], 0
test ebx, ebx
je 0x100b04ad
mov edx, ebx
lea ecx, [esp + 0x8c]
call fcn.10052ce0
cmp word [esp + 0xa0], 0
je 0x100b04cd
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x2c]
or ecx, eax
jne 0x100b04cd
or dword [esp + 0x14], esi
or dword [esp + 0x10], edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
inc eax
add dword [esp + 0x24], 0x14
movzx ecx, bx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
cmp eax, ecx
jl 0x100b0403
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
inc edx
mov dword [esp + 0x44], edx
test cl, cl
jne 0x100afd20
mov eax, dword [esp + 0x78]
cmp ebx, dword [esp + 0x7c]
jne 0x100b053e
cmp edi, eax
jne 0x100b053e
mov al, byte [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x20], 0
je 0x100b053e
and eax, 0x280
cmp eax, 0x80
jne 0x100b0521
test cl, cl
jne 0x100b05ae
mov ecx, dword [esp + 0x30]
movzx eax, cx
lea ebx, [eax - 1]
test ebx, ebx
jle 0x100b059c
cmp ebx, 0x40
jge 0x100b0574
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
adc edx, 0xffffffff
jmp 0x100b0585
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x14]
and esi, edi
cmp eax, ecx
jne 0x100b0597
cmp esi, edx
je 0x100b05a5
dec ebx
test ebx, ebx
jg 0x100b0550
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret