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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, edx
mov eax, ecx
xor edx, edx
mov dword [esp + 0x34], ebx
xorps xmm0, xmm0
mov dword [esp + 0x40], eax
push esi
push edi
movlpd qword [esp + 0x70], xmm0
cmp word [ebp + 0x10], dx
je 0x4ec01f
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
je 0x4ec01f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov dword [esp + 0x88], eax
cmp eax, 0x3f
ja 0x4ec016
movzx ebx, ax
xor ecx, ecx
xor esi, esi
mov edi, dword [esp + 0x74]
mov eax, ebx
movlpd qword [esp + 0x80], xmm0
bts ecx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x1c], 1
mov dword [esp + 0x38], ebx
cmovae esi, ecx
mov dword [esp + 0x40], edx
xor ecx, esi
mov dword [esp + 0x10], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae esi, ecx
add ecx, 0xffffffff
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x1c]
adc esi, 0xffffffff
and eax, 0x803
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x70]
neg eax
mov dword [esp + 0x14], esi
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
nop word [eax + eax]
mov eax, dword [esp + 0x4c]
cmp edi, eax
ja 0x4ec80a
jb 0x4ec0e8
cmp esi, dword [esp + 0x7c]
jae 0x4ec80e
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x40], eax
jg 0x4ec806
cmp dword [esp + 0x40], 0
jle 0x4ec117
mov ebx, dword [esp + 0x5c]
or ebx, dword [edx + 8]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x60]
or ebx, dword [edx + 0xc]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
cmp edx, eax
jge 0x4ec13c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
test eax, 0x800
jne 0x4ec7ee
jmp 0x4ec146
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
test dword [edx + 0x24], 0x400
jne 0x4ec7fc
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x4ec167
xor eax, eax
mov word [edx + 0x1e], ax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x4ec2ec
mov ebx, dword [esp + 0x3c]
add ebx, 4
mov dword [esp + 0x2c], ebx
xor ecx, ecx
xor edx, edx
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, esi
mov eax, edx
mov dword [esp + 0x34], edx
and eax, edi
or ecx, eax
jne 0x4ec2cc
mov esi, dword [ebx]
test esi, esi
je 0x4ec1f0
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x41000
je 0x4ec1f0
test eax, 0x40000
je 0x4ec1e9
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x4ec1ec
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4ec1d0
cmp byte [esi], 0xa4
jne 0x4ec2c8
mov edx, dword [esp + 0x64]
cmp dword [esi + 0x1c], edx
jne 0x4ec2c8
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x68]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x58]
push eax
lea ecx, [ecx + 0x50]
call fcn.004e8570
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4ec2c4
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4ec266
mov eax, dword [esp + 0x24]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
jle 0x4ec262
mov eax, dword [eax + 0x30]
cmp edi, dword [eax]
je 0x4ec262
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4ec256
cmp ecx, edx
jge 0x4ec2c4
test bl, 0x82
je 0x4ec2aa
cmp word [esi + 0x20], 0
jl 0x4ec2aa
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004ab560
mov ebx, eax
test ebx, ebx
jne 0x4ec290
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.004ab770
test eax, eax
je 0x4ec2c4
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.00479de0
test eax, eax
jne 0x4ec2c4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
or esi, dword [esp + 0x50]
or edi, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
jmp 0x4ec2cc
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add dword [esp + 0x2c], 0x14
inc eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x38]
jl 0x4ec196
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x4ec6a4
test eax, 0x100
je 0x4ec318
mov dword [esp + 0x58], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x4ec358
mov edx, dword [edx + 0x20]
mov dword [esp + 0x58], edx
test edx, edx
je 0x4ec016
test byte [edx + 0x38], 4
jne 0x4ec016
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x4ec34f
mov byte [esp + 0x1c], 1
test eax, 0x8000
je 0x4ec354
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x24]
xor al, al
xor esi, esi
mov byte [esp + 0x23], al
mov byte [esp + 0x22], al
mov dword [esp + 0x30], eax
movzx eax, cx
mov dword [esp + 0x28], esi
mov dword [esp + 0x70], eax
test eax, eax
jle 0x4ec6a4
mov dword [esp + 0x34], esi
nop
movzx ebx, word [edx + 0x18]
mov byte [esp + 0x21], 1
cmp esi, ebx
jge 0x4ec3fa
movzx eax, word [edx + 0x2a]
cmp esi, eax
jl 0x4ec3fa
mov edi, dword [edx + 0x30]
mov eax, dword [esp + 0x78]
mov esi, dword [edi + esi*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4ec3c8
mov eax, dword [esp + 0x1c]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x4ec687
test cl, 1
je 0x4ec3f6
mov ecx, dword [esp + 0x28]
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x4ec3f6
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4ec3f0
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4ec3e0
jmp 0x4ec3f6
xor al, al
mov byte [esp + 0x21], al
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x4ec427
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x2c], edx
mov cl, byte [esi + eax]
mov eax, dword [edi + 0xc]
and cl, 1
mov byte [esp + 0x1b], cl
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x4ec433
jmp 0x4ec42c
mov byte [esp + 0x1b], 0
or edx, 0xffffffff
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x1c], 0
je 0x4ec460
test edx, edx
js 0x4ec460
cmp esi, ebx
jl 0x4ec460
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x1c]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*4 + 0xc], 0
cmove edx, esi
mov dword [esp + 0x1c], edx
mov bh, byte [esp + 0x21]
xor edi, edi
test bh, bh
je 0x4ec581
mov esi, dword [esp + 0x3c]
add esi, 4
mov dword [esp + 0x44], esi
nop dword [eax]
cmp edi, dword [esp + 0x38]
jge 0x4ec581
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 0x4ec571
mov ecx, dword [esi]
test ecx, ecx
je 0x4ec4e0
nop word [eax + eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x4ec4e0
test eax, 0x40000
je 0x4ec4d9
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x4ec4dc
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4ec4c0
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x2c]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp edx, 0xffffffff
jl 0x4ec50e
cmp byte [ecx], 0xa4
jne 0x4ec571
mov eax, dword [esp + 0x64]
cmp dword [ecx + 0x1c], eax
jne 0x4ec571
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x4ec571
jmp 0x4ec531
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
push dword [esp + 0x64]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.004b2b00
add esp, 4
test eax, eax
jne 0x4ec571
mov edx, dword [esp + 0x2c]
cmp edx, 0xffffffff
je 0x4ec5af
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004ab560
test eax, eax
jne 0x4ec552
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x58]
mov bh, bl
mov esi, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + esi*4]
call fcn.00479de0
test eax, eax
je 0x4ec5b3
mov esi, dword [esp + 0x44]
add esi, 0x14
inc edi
mov dword [esp + 0x44], esi
test bh, bh
jne 0x4ec480
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4ec594
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x4ec599
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x30]
test al, al
je 0x4ec6a4
mov byte [esp + 0x1c], 1
jmp 0x4ec6af
mov esi, dword [esp + 0x28]
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0x24]
je 0x4ec5c9
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x4ec62d
cmp byte [esp + 0x23], 0
lea eax, [edi + edi*4]
mov ecx, dword [esp + 0x3c]
je 0x4ec5f6
mov al, byte [ecx + eax*4 + 0xc]
mov cl, byte [esp + 0x1b]
and al, 1
xor cl, byte [esp + 0x22]
cmp cl, al
sete al
test al, al
je 0x4ec581
jmp 0x4ec62d
mov dl, byte [ecx + eax*4 + 0xc]
and dl, 1
xor dl, byte [esp + 0x1b]
mov byte [esp + 0x22], dl
je 0x4ec628
mov eax, dword [esp + 0x40]
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 + 0xc], 2
je 0x4ec64e
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x4ec581
or dword [ebx + 0x24], 0x80000
cmp dword [esp + 0x2c], 0xffffffff
mov eax, 1
mov edx, dword [esp + 0x30]
movzx edx, dl
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
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 esi, dword [esp + 0x28]
add dword [esp + 0x34], 0x14
inc esi
mov dword [esp + 0x28], esi
cmp esi, dword [esp + 0x70]
jl 0x4ec380
jmp 0x4ec599
cmp byte [esp + 0x1c], 0
je 0x4ec7da
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x38]
or eax, dword [edx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x6c]
or eax, dword [edx + 0xc]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x44], eax
test ebx, ebx
jle 0x4ec7e2
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add ebx, 4
mov dword [esp + 0x30], ebx
nop word [eax + 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 + 0x14]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x4ec7be
mov ebx, dword [ebx]
test ebx, ebx
je 0x4ec732
mov ecx, dword [esp + 0x48]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004e7cf0
mov ecx, edx
jmp 0x4ec743
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x34], ecx
jne 0x4ec79a
mov dword [esp + 0x90], 0x4acbd0
mov eax, 1
mov word [esp + 0xa0], ax
mov dword [esp + 0x94], 0x4aca60
mov dword [esp + 0xa4], 0
test ebx, ebx
je 0x4ec79a
mov edx, ebx
lea ecx, [esp + 0x8c]
call fcn.004a8aa0
cmp word [esp + 0xa0], 0
je 0x4ec7ba
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x34]
or ecx, eax
jne 0x4ec7ba
or dword [esp + 0x14], esi
or dword [esp + 0x10], edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
add dword [esp + 0x30], 0x14
inc eax
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x38]
jl 0x4ec6f0
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc dword [esp + 0x40]
test cl, cl
jne 0x4ec0d0
jmp 0x4ec806
cmp byte [edx + 0x1d], 0
je 0x4ec806
test al, al
jns 0x4ec814
mov eax, dword [esp + 0x4c]
cmp esi, dword [esp + 0x7c]
jne 0x4ec822
cmp edi, eax
jne 0x4ec822
mov al, byte [esp + 0x88]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test cl, cl
jne 0x4ec875
dec ebx
test ebx, ebx
jle 0x4ec016
nop
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, esi
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4ec85d
cmp esi, edx
je 0x4ec86c
dec ebx
test ebx, ebx
jle 0x4ec016
mov esi, dword [esp + 0x14]
jmp 0x4ec830
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