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

Disassembly:
sub esp, 0x90
push ebx
push ebp
xor ecx, ecx
xorps xmm0, xmm0
push esi
push edi
movlpd qword [esp + 0x68], xmm0
cmp word [esp + 0xb4], cx
je 0x4eeb24
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x4ef440
mov eax, dword [esp + 0xa8]
movzx eax, word [eax]
mov dword [esp + 0x7c], eax
cmp eax, 0x3f
ja 0x4ef440
movzx edi, ax
xor edx, edx
xor ebx, ebx
mov ebp, dword [esp + 0x6c]
mov eax, edi
movlpd qword [esp + 0x40], xmm0
bts edx, eax
movlpd qword [esp + 0x38], xmm0
cmp eax, 0x20
mov byte [esp + 0x14], 1
mov dword [esp + 0x34], edi
cmovae ebx, edx
mov dword [esp + 0x1c], ebp
xor edx, ebx
cmp eax, 0x40
mov eax, dword [esp + 0xb0]
cmovae ebx, edx
add edx, 0xffffffff
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x68]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x14]
neg eax
mov dword [esp + 0x18], edx
sbb eax, eax
neg eax
add eax, 0x182
xor esi, esi
movzx eax, ax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
cmp ebp, eax
ja 0x4ef3b9
jb 0x4eebe8
cmp edx, dword [esp + 0x78]
jae 0x4ef3bd
movzx eax, word [esp + 0xb4]
cmp esi, eax
jg 0x4ef3e4
test esi, esi
jle 0x4eec16
mov edi, dword [esp + 0x50]
or edi, dword [ecx + 8]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x54]
or edi, dword [ecx + 0xc]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x34]
cmp esi, eax
jge 0x4eec40
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + esi*4]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x28], esi
test eax, 0x800
je 0x4eec52
mov ecx, esi
jmp 0x4ef3a4
mov esi, dword [esp + 0xb8]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x28], esi
mov edx, dword [esi + 0x2c]
test edx, 0x400
jne 0x4ef3d2
and eax, 0x80
mov dword [esp + 0x40], eax
je 0x4eec72
xor eax, eax
mov word [esi + 0x1e], ax
movzx eax, byte [esi + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 4]
mov edi, dword [eax + ecx*8 + 0x34]
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x34], eax
jbe 0x4eee18
mov ebx, dword [esp + 0xa8]
add ebx, 8
mov dword [esp + 0x24], ebx
nop dword [eax]
xor ebp, ebp
xor edx, edx
bts ebp, eax
cmp eax, 0x20
cmovae edx, ebp
xor ebp, edx
cmp eax, 0x40
mov ecx, ebp
cmovae edx, ebp
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x38], edx
and eax, dword [esp + 0x1c]
or ecx, eax
jne 0x4eedf5
mov esi, dword [ebx]
test esi, esi
je 0x4eedf5
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x4eed15
test eax, 0x80000
je 0x4eed09
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x4eed0c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4eecf0
jmp 0x4eedf5
mov al, byte [esi]
cmp al, 0xa7
je 0x4eed23
cmp al, 0xa9
jne 0x4eedf5
cmp dword [esi + 0x1c], edi
jne 0x4eedf5
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x50]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x5c]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
push eax
mov eax, dword [esp + 0xb8]
add eax, 0x50
push edi
push eax
call fcn.004dadc0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4eedf1
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4eed93
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x4eed8f
mov eax, dword [eax + 0x38]
cmp edi, dword [eax]
je 0x4eed8f
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4eed81
jmp 0x4eedf1
cmp ecx, edx
jge 0x4eedf1
test bl, 0x82
je 0x4eede1
cmp word [esi + 0x20], 0
jl 0x4eede1
mov eax, dword [esp + 0xa4]
mov esi, dword [eax]
mov eax, dword [esp + 0x24]
push dword [eax]
push esi
call fcn.004a36a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4eedc2
mov eax, dword [esi]
mov ebx, dword [eax + 8]
push dword [edi]
push esi
call fcn.004a3af0
add esp, 8
test eax, eax
je 0x4eedf1
push dword [eax]
push dword [ebx]
call fcn.004c1f20
add esp, 8
test eax, eax
jne 0x4eedf1
or dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
or ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x24], 0x14
inc eax
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x34]
jl 0x4eecb0
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 0x2c]
test edx, 0x1000
jne 0x4ef216
test edx, 0x100
je 0x4eee47
mov edx, dword [esp + 0x14]
mov eax, 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x38], 0
jmp 0x4eee84
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x4ef440
test byte [ecx + 0x38], 4
jne 0x4ef440
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x32]
mov dword [esp + 0x38], eax
movzx eax, word [ecx + 0x34]
je 0x4eee7e
test edx, 0x8000
jne 0x4eee7e
mov dl, 1
jmp 0x4eee80
xor dl, dl
mov dword [esp + 0x14], edx
movzx eax, ax
xor cl, cl
xor ebp, ebp
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x68], eax
test eax, eax
je 0x4ef216
mov dword [esp + 0x58], ebp
nop dword [eax]
movzx ebx, word [esi + 0x18]
mov byte [esp + 0x21], 1
cmp ebp, ebx
jge 0x4eef26
movzx eax, word [esi + 0x32]
cmp ebp, eax
jl 0x4eef26
mov edi, dword [esi + 0x38]
mov eax, dword [esp + 0x70]
mov esi, dword [edi + ebp*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4eeef6
test ecx, 0x180
movzx eax, dl
mov ecx, 0
cmove ecx, eax
mov dl, cl
mov dword [esp + 0x14], edx
jmp 0x4ef1d7
test cl, 1
je 0x4eef26
mov esi, dword [esi]
lea edx, [ebp + 1]
cmp edx, ebx
jge 0x4eef26
lea ecx, [ebp + 1]
lea ecx, [edi + ecx*4]
nop word [eax + eax]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4eef20
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4eef10
jmp 0x4eef26
xor al, al
mov byte [esp + 0x21], al
mov edx, dword [esp + 0x48]
test edx, edx
je 0x4eef53
mov eax, dword [edx + 4]
movsx esi, word [eax + ebp*2]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x4c], esi
mov cl, byte [eax + ebp]
mov eax, dword [edx + 0xc]
and cl, 1
mov byte [esp + 0x13], cl
movsx eax, word [eax + 0x20]
cmp esi, eax
jne 0x4eef5f
jmp 0x4eef58
mov byte [esp + 0x13], 0
or esi, 0xffffffff
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x14]
test al, al
je 0x4eef96
test esi, esi
js 0x4eef87
cmp ebp, ebx
jl 0x4eef96
mov eax, dword [edx + 0xc]
mov ecx, esi
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x4eef96
mov byte [esp + 0x14], 0
jmp 0x4eef96
xor ecx, ecx
movzx eax, al
cmp esi, 0xfffffffe
cmove eax, ecx
mov dword [esp + 0x14], eax
mov bh, byte [esp + 0x21]
xor edi, edi
test bh, bh
je 0x4ef1f4
mov ebp, dword [esp + 0xa8]
add ebp, 8
nop
cmp edi, dword [esp + 0x34]
jge 0x4ef1f0
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 + 0x18]
and ecx, dword [esp + 0x1c]
or edx, ecx
jne 0x4ef0e7
mov eax, dword [ebp]
test eax, eax
je 0x4ef0e7
nop dword [eax]
mov ecx, dword [eax + 4]
test ecx, 0x82000
je 0x4ef017
test ecx, 0x80000
je 0x4ef00b
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
jmp 0x4ef00e
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4eeff0
jmp 0x4ef0e7
mov cl, byte [esp + 0xb0]
and cl, 0xc0
neg cl
sbb cl, cl
and bh, cl
mov bl, bh
cmp esi, 0xffffffff
jl 0x4ef055
mov cl, byte [eax]
cmp cl, 0xa7
je 0x4ef03e
cmp cl, 0xa9
jne 0x4ef0e7
mov ecx, dword [esp + 0x30]
mov bh, bl
cmp dword [eax + 0x1c], ecx
jne 0x4ef0e7
movsx eax, word [eax + 0x20]
cmp eax, esi
jmp 0x4ef0a2
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov ecx, dword [ecx + 0x28]
mov ecx, dword [ecx + edx + 8]
test ecx, ecx
je 0x4ef080
nop dword [eax + eax]
test dword [ecx + 4], 0x2000
je 0x4ef080
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4ef070
test dword [eax + 4], 0x2000
je 0x4ef090
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4ef080
push dword [esp + 0x30]
push ecx
push eax
push 0
call fcn.004a3880
add esp, 0x10
test eax, eax
jne 0x4ef0e7
cmp esi, 0xffffffff
je 0x4ef100
mov eax, dword [esp + 0xa4]
push dword [ebp]
mov esi, dword [eax]
push esi
call fcn.004a36a0
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x4ef0c9
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x48]
mov bh, bl
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
push dword [eax + edx*4]
push dword [ecx]
call fcn.004c1f20
add esp, 8
test eax, eax
je 0x4ef0fc
inc edi
add ebp, 0x14
test bh, bh
je 0x4ef1f0
mov esi, dword [esp + 0x4c]
jmp 0x4eefb0
mov esi, dword [esp + 0x4c]
cmp word [esp + 0x40], 0
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
je 0x4ef117
lea eax, [ebp + 1]
mov word [ebx + 0x1e], ax
test byte [esp + 0xb0], 0x40
jne 0x4ef180
mov ecx, dword [esp + 0xa8]
lea eax, [edi + edi*4]
mov al, byte [ecx + eax*4 + 0x10]
and al, 1
cmp byte [esp + 0x23], 0
je 0x4ef14a
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x22]
cmp cl, al
jne 0x4ef1f4
jmp 0x4ef180
mov dl, al
xor dl, byte [esp + 0x13]
mov byte [esp + 0x22], dl
je 0x4ef17b
mov eax, dword [esp + 0x64]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0xbc]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x23], 1
mov ecx, dword [esp + 0xa8]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 2
je 0x4ef1a0
movzx eax, word [ebx + 0x18]
cmp ebp, eax
jne 0x4ef1f4
or dword [ebx + 0x2c], 0x80000
mov edx, dword [esp + 0x2c]
cmp esi, 0xffffffff
movzx edx, dl
mov eax, 1
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x18], eax
or dword [esp + 0x1c], ecx
add dword [esp + 0x58], 0x14
inc ebp
mov dword [esp + 0x24], ebp
cmp ebp, dword [esp + 0x68]
jge 0x4ef208
mov esi, dword [esp + 0x28]
jmp 0x4eeeb0
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4ef203
mov eax, dword [esp + 0x38]
movzx eax, ax
cmp ebp, eax
jge 0x4ef208
mov byte [esp + 0x14], 0
cmp byte [esp + 0x2c], 0
je 0x4ef216
mov byte [esp + 0x14], 1
jmp 0x4ef221
cmp byte [esp + 0x14], 0
je 0x4ef390
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
or eax, dword [ecx + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x38], eax
test edi, edi
je 0x4ef39c
mov esi, dword [esp + 0xa8]
add esi, 8
mov dword [esp + 0x2c], esi
nop
xor edi, edi
xor edx, edx
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov ecx, edi
cmovae edx, edi
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x68], edx
and eax, ebp
or ecx, eax
jne 0x4ef368
mov eax, dword [esp + 0xa4]
mov esi, dword [esi]
add eax, 0x1f0
test esi, esi
je 0x4ef2d3
cmp byte [esi], 0xa7
jne 0x4ef2ba
test byte [esi + 4], 0x20
jne 0x4ef2ba
push dword [esi + 0x1c]
push eax
call fcn.004dae60
add esp, 8
mov ebx, eax
mov ebp, edx
jmp 0x4ef2e4
test dword [esi + 4], 0x810000
jne 0x4ef2d3
push esi
push eax
call fcn.004dac70
add esp, 8
mov ebx, eax
mov ebp, edx
jmp 0x4ef2e4
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov eax, ebx
or eax, ebp
jne 0x4ef338
mov dword [esp + 0x88], fcn.0046e390
mov eax, 1
mov word [esp + 0x98], ax
mov dword [esp + 0x8c], 0x4c0870
mov dword [esp + 0x9c], 0
test esi, esi
je 0x4ef338
lea eax, [esp + 0x84]
push esi
push eax
call fcn.004d5e10
add esp, 8
cmp word [esp + 0x98], 0
je 0x4ef364
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
not ecx
mov edx, dword [esp + 0x18]
not eax
and eax, ebp
and ecx, ebx
or ecx, eax
mov ebp, dword [esp + 0x1c]
jne 0x4ef36c
or edx, edi
or ebp, dword [esp + 0x68]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
jmp 0x4ef36c
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
add dword [esp + 0x2c], 0x14
inc eax
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
cmp eax, edi
jl 0x4ef260
mov ecx, dword [esp + 0x28]
jmp 0x4ef3a0
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x64]
inc esi
mov dword [esp + 0x64], esi
test bl, bl
jne 0x4eebd0
mov eax, dword [esp + 0x74]
cmp edx, dword [esp + 0x78]
jne 0x4ef3e4
cmp ebp, eax
jne 0x4ef3e4
mov al, byte [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp byte [esi + 0x20], 0
je 0x4ef3e4
and eax, 0x280
cmp eax, 0x80
jne 0x4ef3c3
test bl, bl
jne 0x4ef45a
lea ebx, [edi - 1]
test ebx, ebx
jle 0x4ef440
mov edi, dword [esp + 0x18]
cmp ebx, 0x40
jge 0x4ef417
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 0x4ef42b
xorps xmm0, xmm0
movlpd qword [esp + 0x7c], xmm0
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov eax, ecx
mov esi, edx
and eax, edi
and esi, ebp
cmp eax, ecx
jne 0x4ef43b
cmp esi, edx
je 0x4ef44d
dec ebx
test ebx, ebx
jg 0x4ef3f3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x90
ret
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x90
ret
pop edi
pop esi
pop ebp
or al, 0xff
pop ebx
add esp, 0x90
ret