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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x60], edx
mov eax, ecx
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], di
je 0x4ef118
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
jne 0x4ef8f4
movzx eax, word [edx]
mov dword [esp + 0x98], eax
cmp eax, 0x3f
ja 0x4ef8f4
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 + 0x84], 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 + 0x94], eax
mov eax, edi
setne al
mov dword [esp + 0x18], ecx
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x68], eax
nop
mov eax, dword [esp + 0x64]
cmp esi, eax
ja 0x4ef895
jb 0x4ef1eb
cmp ecx, dword [esp + 0x84]
jae 0x4ef89c
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x38], eax
jg 0x4ef891
cmp dword [esp + 0x38], 0
jle 0x4ef21a
mov ebx, dword [esp + 0x68]
or ebx, dword [edi + 8]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x6c]
or ebx, dword [edi + 0xc]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
cmp edi, eax
jge 0x4ef240
cmp word [esp + 0x94], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + edi*4]
mov dword [esp + 0x34], edi
jne 0x4ef87d
jmp 0x4ef247
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x34], edi
mov edx, dword [edi + 0x24]
test edx, 0x400
jne 0x4ef88b
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 0x4ef365
mov edx, dword [esp + 0x60]
add edx, 4
mov dword [esp + 0x20], edx
nop dword [eax + eax]
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 0x4ef340
mov ecx, dword [edx]
call fcn.004b1080
mov edx, eax
mov dword [esp + 0x48], edx
cmp byte [edx], 0xa2
jne 0x4ef340
mov eax, dword [esp + 0x54]
cmp dword [edx + 0x1c], eax
jne 0x4ef340
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x68]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x74]
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.004eb620
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4ef33c
movzx eax, word [esi + 0xc]
cmp eax, 1
jne 0x4ef398
mov edx, dword [esp + 0x34]
xor ecx, ecx
movzx edx, word [edx + 0x28]
test edx, edx
je 0x4ef394
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x30]
nop dword [eax]
cmp esi, dword [eax]
je 0x4ef390
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4ef330
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 0x4ef290
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x24]
test edx, 0x1000
jne 0x4ef71f
test edx, 0x100
je 0x4ef3d8
mov dword [esp + 0x58], 0
mov eax, 1
mov dword [esp + 0x48], 0
jmp 0x4ef406
movzx eax, word [esi + 0xc]
cmp ecx, edx
jge 0x4ef33c
test al, 0x82
je 0x4ef3c5
mov eax, dword [esp + 0x48]
cmp word [eax + 0x20], 0
jl 0x4ef3c5
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
push dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx]
call fcn.004b1230
add esp, 4
test eax, eax
je 0x4ef33c
mov esi, dword [esp + 0x14]
or dword [esp + 0x18], edi
or esi, ebx
mov dword [esp + 0x14], esi
jmp 0x4ef340
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x4ef8f4
test byte [ecx + 0x38], 4
jne 0x4ef8f4
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 0x4ef71f
mov dword [esp + 0x40], edx
nop
movzx esi, word [edi + 0x18]
mov bh, 1
mov byte [esp + 0x13], bh
cmp edx, esi
jge 0x4ef4a6
movzx eax, word [edi + 0x2a]
cmp edx, eax
jl 0x4ef4a6
mov ebx, dword [edi + 0x30]
mov eax, dword [esp + 0x80]
mov edi, dword [ebx + edx*4]
movzx ecx, word [edi + 0xc]
and eax, ecx
test ax, ax
je 0x4ef47c
mov eax, dword [esp + 0x1c]
test ecx, 0x100
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x4ef702
test cl, 1
je 0x4ef4d4
mov edi, dword [edi]
inc edx
cmp edx, esi
jge 0x4ef49e
mov ecx, dword [esp + 0x20]
inc ecx
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], edi
je 0x4ef4d0
inc edx
add ecx, 4
cmp edx, esi
jl 0x4ef490
mov bh, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x4ef4da
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 0x4ef4e6
jmp 0x4ef4df
xor bh, bh
jmp 0x4ef4a2
mov bh, byte [esp + 0x13]
jmp 0x4ef4a6
mov byte [esp + 0x13], 0
or ecx, 0xffffffff
mov dword [esp + 0x30], ecx
cmp byte [esp + 0x1c], 0
je 0x4ef516
test ecx, ecx
js 0x4ef516
cmp edx, esi
jl 0x4ef516
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 0x4ef637
mov edx, dword [esp + 0x60]
add edx, 4
mov dword [esp + 0x5c], edx
nop dword [eax + eax]
cmp edi, dword [esp + 0x28]
jge 0x4ef637
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 0x4ef627
mov ecx, dword [edx]
test ecx, ecx
je 0x4ef5a0
nop dword [eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x4ef5a0
test eax, 0x40000
je 0x4ef599
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x4ef59c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4ef580
mov al, byte [ebp + 0xc]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp esi, 0xffffffff
jl 0x4ef5c8
cmp byte [ecx], 0xa2
jne 0x4ef627
mov eax, dword [esp + 0x54]
cmp dword [ecx + 0x1c], eax
jne 0x4ef627
movsx eax, word [ecx + 0x20]
cmp eax, esi
jmp 0x4ef5e9
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.004b8110
mov edx, dword [esp + 0x60]
add esp, 4
test eax, eax
jne 0x4ef627
cmp esi, 0xffffffff
je 0x4ef668
mov eax, dword [esp + 0x44]
mov edx, dword [edx]
mov esi, dword [eax]
mov ecx, esi
call fcn.004b10b0
test eax, eax
jne 0x4ef608
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.00481170
test eax, eax
je 0x4ef664
mov edx, dword [esp + 0x5c]
add edx, 0x18
inc edi
mov dword [esp + 0x5c], edx
test bh, bh
jne 0x4ef530
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4ef64a
mov eax, dword [esp + 0x48]
movzx eax, ax
cmp ecx, eax
jge 0x4ef64f
mov byte [esp + 0x1c], 0
cmp byte [esp + 0x2c], 0
je 0x4ef71f
mov byte [esp + 0x1c], 1
jmp 0x4ef72a
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 0x4ef6d1
cmp byte [esp + 0x27], 0
lea eax, [edi + edi*2]
mov ecx, dword [esp + 0x60]
mov al, byte [ecx + eax*8 + 0x10]
je 0x4ef69d
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x26]
cmp cl, al
jne 0x4ef637
jmp 0x4ef6d1
xor al, byte [esp + 0x13]
mov byte [esp + 0x26], al
je 0x4ef6cc
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 [ebp + 0x18]
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 0x4ef64f
mov edi, dword [esp + 0x34]
jmp 0x4ef430
cmp byte [esp + 0x1c], 0
je 0x4ef869
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x28]
or eax, dword [edi + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x74]
or eax, dword [edi + 0xc]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x3c], eax
test ebx, ebx
je 0x4ef871
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x28]
add ebx, 4
mov dword [esp + 0x2c], 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 + 0x18]
mov eax, edi
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x4ef83d
mov ebx, dword [ebx]
test ebx, ebx
je 0x4ef7a9
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004eaf90
mov ecx, edx
jmp 0x4ef7ba
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 0x4ef807
mov byte [esp + 0xb0], 1
mov dword [esp + 0xa0], fcn.004b3500
mov dword [esp + 0xa4], 0x4b33c0
mov dword [esp + 0xb4], eax
test ebx, ebx
je 0x4ef807
mov edx, ebx
lea ecx, [esp + 0x9c]
call fcn.004ae8d0
cmp byte [esp + 0xb0], 0
je 0x4ef839
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
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 0x4ef841
or ecx, esi
mov esi, dword [esp + 0x14]
or esi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
jmp 0x4ef845
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 0x4ef765
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
jmp 0x4ef879
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 0x4ef1d0
jmp 0x4ef891
cmp byte [edi + 0x1d], 0
jne 0x4ef8a2
mov eax, dword [esp + 0x64]
cmp ecx, dword [esp + 0x84]
jne 0x4ef8b0
cmp esi, eax
jne 0x4ef8b0
mov al, byte [esp + 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x1c], 0
jne 0x4ef906
dec ebx
test ebx, ebx
jle 0x4ef8f4
mov edi, dword [esp + 0x14]
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 0x4ef8ef
cmp esi, edx
je 0x4ef8fd
dec ebx
test ebx, ebx
jg 0x4ef8c0
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