Function at 0x4ee3a0
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 0x4ee3d8
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
jne 0x4eebb4
movzx eax, word [edx]
mov dword [esp + 0x98], eax
cmp eax, 0x3f
ja 0x4eebb4
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 0x4eeb55
jb 0x4ee4ab
cmp ecx, dword [esp + 0x84]
jae 0x4eeb5c
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x38], eax
jg 0x4eeb51
cmp dword [esp + 0x38], 0
jle 0x4ee4da
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 0x4ee500
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 0x4eeb3d
jmp 0x4ee507
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x34], edi
mov edx, dword [edi + 0x24]
test edx, 0x400
jne 0x4eeb4b
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 0x4ee625
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 0x4ee600
mov ecx, dword [edx]
call fcn.004b0320
mov edx, eax
mov dword [esp + 0x48], edx
cmp byte [edx], 0xa2
jne 0x4ee600
mov eax, dword [esp + 0x54]
cmp dword [edx + 0x1c], eax
jne 0x4ee600
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.004ea8e0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4ee5fc
movzx eax, word [esi + 0xc]
cmp eax, 1
jne 0x4ee658
mov edx, dword [esp + 0x34]
xor ecx, ecx
movzx edx, word [edx + 0x28]
test edx, edx
je 0x4ee654
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x30]
nop dword [eax]
cmp esi, dword [eax]
je 0x4ee650
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4ee5f0
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 0x4ee550
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x24]
test edx, 0x1000
jne 0x4ee9df
test edx, 0x100
je 0x4ee698
mov dword [esp + 0x58], 0
mov eax, 1
mov dword [esp + 0x48], 0
jmp 0x4ee6c6
movzx eax, word [esi + 0xc]
cmp ecx, edx
jge 0x4ee5fc
test al, 0x82
je 0x4ee685
mov eax, dword [esp + 0x48]
cmp word [eax + 0x20], 0
jl 0x4ee685
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
push dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx]
call fcn.004b04d0
add esp, 4
test eax, eax
je 0x4ee5fc
mov esi, dword [esp + 0x14]
or dword [esp + 0x18], edi
or esi, ebx
mov dword [esp + 0x14], esi
jmp 0x4ee600
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x4eebb4
test byte [ecx + 0x38], 4
jne 0x4eebb4
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 0x4ee9df
mov dword [esp + 0x40], edx
nop
movzx esi, word [edi + 0x18]
mov bh, 1
mov byte [esp + 0x13], bh
cmp edx, esi
jge 0x4ee766
movzx eax, word [edi + 0x2a]
cmp edx, eax
jl 0x4ee766
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 0x4ee73c
mov eax, dword [esp + 0x1c]
test ecx, 0x100
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x4ee9c2
test cl, 1
je 0x4ee794
mov edi, dword [edi]
inc edx
cmp edx, esi
jge 0x4ee75e
mov ecx, dword [esp + 0x20]
inc ecx
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], edi
je 0x4ee790
inc edx
add ecx, 4
cmp edx, esi
jl 0x4ee750
mov bh, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x4ee79a
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 0x4ee7a6
jmp 0x4ee79f
xor bh, bh
jmp 0x4ee762
mov bh, byte [esp + 0x13]
jmp 0x4ee766
mov byte [esp + 0x13], 0
or ecx, 0xffffffff
mov dword [esp + 0x30], ecx
cmp byte [esp + 0x1c], 0
je 0x4ee7d6
test ecx, ecx
js 0x4ee7d6
cmp edx, esi
jl 0x4ee7d6
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 0x4ee8f7
mov edx, dword [esp + 0x60]
add edx, 4
mov dword [esp + 0x5c], edx
nop dword [eax + eax]
cmp edi, dword [esp + 0x28]
jge 0x4ee8f7
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 0x4ee8e7
mov ecx, dword [edx]
test ecx, ecx
je 0x4ee860
nop dword [eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x4ee860
test eax, 0x40000
je 0x4ee859
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x4ee85c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4ee840
mov al, byte [ebp + 0xc]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp esi, 0xffffffff
jl 0x4ee888
cmp byte [ecx], 0xa2
jne 0x4ee8e7
mov eax, dword [esp + 0x54]
cmp dword [ecx + 0x1c], eax
jne 0x4ee8e7
movsx eax, word [ecx + 0x20]
cmp eax, esi
jmp 0x4ee8a9
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.004b73b0
mov edx, dword [esp + 0x60]
add esp, 4
test eax, eax
jne 0x4ee8e7
cmp esi, 0xffffffff
je 0x4ee928
mov eax, dword [esp + 0x44]
mov edx, dword [edx]
mov esi, dword [eax]
mov ecx, esi
call fcn.004b0350
test eax, eax
jne 0x4ee8c8
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.00480400
test eax, eax
je 0x4ee924
mov edx, dword [esp + 0x5c]
add edx, 0x18
inc edi
mov dword [esp + 0x5c], edx
test bh, bh
jne 0x4ee7f0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4ee90a
mov eax, dword [esp + 0x48]
movzx eax, ax
cmp ecx, eax
jge 0x4ee90f
mov byte [esp + 0x1c], 0
cmp byte [esp + 0x2c], 0
je 0x4ee9df
mov byte [esp + 0x1c], 1
jmp 0x4ee9ea
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 0x4ee991
cmp byte [esp + 0x27], 0
lea eax, [edi + edi*2]
mov ecx, dword [esp + 0x60]
mov al, byte [ecx + eax*8 + 0x10]
je 0x4ee95d
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x26]
cmp cl, al
jne 0x4ee8f7
jmp 0x4ee991
xor al, byte [esp + 0x13]
mov byte [esp + 0x26], al
je 0x4ee98c
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 0x4ee90f
mov edi, dword [esp + 0x34]
jmp 0x4ee6f0
cmp byte [esp + 0x1c], 0
je 0x4eeb29
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 0x4eeb31
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 0x4eeafd
mov ebx, dword [ebx]
test ebx, ebx
je 0x4eea69
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004ea250
mov ecx, edx
jmp 0x4eea7a
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 0x4eeac7
mov byte [esp + 0xb0], 1
mov dword [esp + 0xa0], fcn.004b27a0
mov dword [esp + 0xa4], 0x4b2660
mov dword [esp + 0xb4], eax
test ebx, ebx
je 0x4eeac7
mov edx, ebx
lea ecx, [esp + 0x9c]
call fcn.004adb70
cmp byte [esp + 0xb0], 0
je 0x4eeaf9
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 0x4eeb01
or ecx, esi
mov esi, dword [esp + 0x14]
or esi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
jmp 0x4eeb05
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 0x4eea25
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
jmp 0x4eeb39
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 0x4ee490
jmp 0x4eeb51
cmp byte [edi + 0x1d], 0
jne 0x4eeb62
mov eax, dword [esp + 0x64]
cmp ecx, dword [esp + 0x84]
jne 0x4eeb70
cmp esi, eax
jne 0x4eeb70
mov al, byte [esp + 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x1c], 0
jne 0x4eebc6
dec ebx
test ebx, ebx
jle 0x4eebb4
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 0x4eebaf
cmp esi, edx
je 0x4eebbd
dec ebx
test ebx, ebx
jg 0x4eeb80
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