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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
cmp word [ebp + 0x10], 0
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 0
movlpd qword [esp + 0x80], xmm0
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esp + 0x70], eax
je 0x4e7355
test byte [eax + 0x3c], 0x80
jne 0x4e7b5d
movzx eax, word [edx]
mov dword [esp + 0x8c], eax
cmp eax, 0x3f
ja 0x4e7b5d
movzx edx, ax
xor ecx, ecx
xor esi, esi
movlpd qword [esp + 0x78], xmm0
mov eax, edx
movlpd qword [esp + 0x48], xmm0
bts ecx, eax
mov byte [esp + 0xc], 1
cmp eax, 0x20
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], 0
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov eax, dword [esp + 0x7c]
cmovae esi, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
add ecx, 0xffffffff
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
adc esi, 0xffffffff
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], eax
nop word [eax + eax]
mov eax, dword [esp + 0x5c]
cmp esi, eax
ja 0x4e7af3
jb 0x4e740b
cmp ecx, dword [esp + 0x88]
jae 0x4e7afa
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x3c], eax
jg 0x4e7aef
mov edx, dword [esp + 0x3c]
test edx, edx
jle 0x4e7443
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x64]
or edi, dword [edx + 8]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x68]
or edi, dword [edx + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x20]
cmp edx, eax
jge 0x4e7452
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4]
jmp 0x4e7455
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], eax
test edx, 0x400
jne 0x4e7ae5
movzx eax, byte [eax + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
shl ecx, 4
mov eax, dword [ecx + eax + 0x38]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x30], eax
jbe 0x4e75b5
xor edx, edx
mov dword [esp + 0x1c], edx
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, dword [esp + 0x10]
or ecx, eax
jne 0x4e7590
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov ecx, dword [edx + ecx]
call fcn.004af8e0
mov edx, eax
mov dword [esp + 0x48], edx
cmp byte [edx], 0x9a
jne 0x4e7590
mov eax, dword [esp + 0x50]
cmp dword [edx + 0x1c], eax
jne 0x4e7590
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
not eax
push 0
push 0x182
not ecx
push eax
movsx eax, word [edx + 0x20]
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0x148
call fcn.004e3cb0
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
je 0x4e7590
test byte [eax + 0x12], 0x82
je 0x4e7588
mov eax, dword [esp + 0x48]
cmp word [eax + 0x20], 0
jl 0x4e7588
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + edx]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
call fcn.004af910
test eax, eax
jne 0x4e7554
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov edx, dword [edx]
mov ecx, dword [eax]
call fcn.004af910
test eax, eax
jne 0x4e7576
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 8]
push dword [eax]
push dword [esp + 0x4c]
call fcn.004839e0
add esp, 8
test eax, eax
jne 0x4e7590
or dword [esp + 0x14], esi
or dword [esp + 0x10], edi
mov eax, dword [esp + 0x40]
add dword [esp + 0x1c], 0x18
inc eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x30]
jl 0x4e7493
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x24]
jmp 0x4e75b9
mov eax, dword [esp + 0x2c]
test edx, 0x1000
jne 0x4e7911
test edx, 0x100
je 0x4e75e0
mov edx, dword [esp + 0xc]
xor edi, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], edi
lea eax, [edi + 1]
jmp 0x4e7610
mov edi, dword [eax + 0x1c]
mov dword [esp + 0x54], edi
test edi, edi
je 0x4e7b5d
test byte [edi + 0x38], 4
jne 0x4e7b5d
cmp byte [edi + 0x36], 0
movzx eax, word [edi + 0x32]
setne dl
mov dword [esp + 0x48], eax
movzx eax, word [edi + 0x34]
mov dword [esp + 0xc], edx
movzx eax, ax
xor cl, cl
xor esi, esi
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x80], eax
test eax, eax
je 0x4e7911
mov dword [esp + 0x24], esi
nop dword [eax]
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax + 0x18]
cmp esi, ecx
jge 0x4e767f
cmp word [eax + 0x2a], 0
jne 0x4e767f
mov eax, dword [eax + 0x30]
mov eax, dword [eax + esi*4]
movzx eax, word [eax + 0x12]
test eax, 0x182
je 0x4e767f
test eax, 0x100
mov ecx, 0
movzx eax, dl
cmove ecx, eax
mov dl, cl
mov dword [esp + 0xc], edx
jmp 0x4e78f1
test edi, edi
je 0x4e76a5
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x1c], edx
mov al, byte [esi + eax]
mov byte [esp + 0xb], al
mov eax, dword [edi + 0xc]
movsx eax, word [eax + 0x20]
cmp edx, eax
jne 0x4e76b1
jmp 0x4e76aa
mov byte [esp + 0xb], 0
or edx, 0xffffffff
mov dword [esp + 0x1c], edx
cmp byte [esp + 0xc], 0
je 0x4e76de
test edx, edx
js 0x4e76de
cmp esi, ecx
jl 0x4e76de
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*2]
mov edx, dword [esp + 0xc]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0x14], 0
cmove edx, esi
mov dword [esp + 0xc], edx
xor esi, esi
mov dl, 1
mov dword [esp + 0x74], esi
xor edi, edi
nop dword [eax + eax]
cmp esi, dword [esp + 0x30]
jge 0x4e782e
mov eax, esi
xor ecx, ecx
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
mov dword [esp + 0x60], esi
cmp eax, 0x40
mov dword [esp + 0x78], ecx
mov eax, esi
mov esi, dword [esp + 0x74]
cmovae eax, ecx
and ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x4e781e
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov ecx, dword [edi + ecx]
test ecx, ecx
je 0x4e7763
mov eax, dword [ecx + 4]
test eax, 0x1000
je 0x4e7763
test eax, 0x40000
je 0x4e775c
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
jmp 0x4e775f
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4e7741
mov eax, dword [ebp + 0xc]
and eax, 0x300
neg eax
sbb al, al
and dl, al
cmp dword [esp + 0x1c], 0xffffffff
mov al, dl
mov byte [esp + 0x2b], al
jl 0x4e77a4
cmp byte [ecx], 0x9a
jne 0x4e781e
mov esi, dword [esp + 0x50]
cmp dword [ecx + 0x1c], esi
mov esi, dword [esp + 0x74]
jne 0x4e781e
movsx eax, word [ecx + 0x20]
cmp eax, dword [esp + 0x1c]
jne 0x4e781e
jmp 0x4e77c9
mov eax, dword [esp + 0x54]
push dword [esp + 0x50]
mov byte [esp + 0xe], dl
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + eax]
call fcn.004b4e60
add esp, 4
test eax, eax
jne 0x4e781a
cmp dword [esp + 0x1c], 0
jl 0x4e785b
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [edi + edx]
mov ecx, dword [eax]
call fcn.004af910
mov ecx, eax
test ecx, ecx
jne 0x4e77f6
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov al, byte [esp + 0x2b]
mov edx, dword [esp + 0x58]
mov byte [esp + 0xa], al
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x20]
push dword [eax + edx*4]
push dword [ecx]
call fcn.004839e0
add esp, 8
test eax, eax
je 0x4e785b
mov dl, byte [esp + 0xa]
inc esi
add edi, 0x18
mov dword [esp + 0x74], esi
test dl, dl
jne 0x4e76f0
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4e7841
mov eax, dword [esp + 0x48]
movzx eax, ax
cmp ecx, eax
jge 0x4e7846
mov byte [esp + 0xc], 0
cmp byte [esp + 0x40], 0
je 0x4e7911
mov byte [esp + 0xc], 1
jmp 0x4e791c
test dword [ebp + 0xc], 0x100
jne 0x4e78b9
cmp byte [esp + 0x1b], 0
lea ecx, [esi + esi*2]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*8 + 0xc]
je 0x4e7887
mov cl, byte [esp + 0xb]
xor cl, byte [esp + 0x1a]
cmp cl, al
jne 0x4e782e
jmp 0x4e78b9
mov dl, al
xor dl, byte [esp + 0xb]
mov byte [esp + 0x1a], dl
je 0x4e78b4
mov eax, dword [esp + 0x3c]
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 + 0x1b], 1
mov edx, dword [esp + 0x40]
mov eax, 1
cmp dword [esp + 0x1c], 0
mov esi, dword [esp + 0x58]
movzx edx, dl
cmovl edx, eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x60]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
add dword [esp + 0x24], 0x18
inc esi
mov dword [esp + 0x58], esi
cmp esi, dword [esp + 0x80]
jge 0x4e7846
mov edi, dword [esp + 0x54]
jmp 0x4e7640
cmp byte [esp + 0xc], 0
je 0x4e7ac4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
or ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x34]
or ecx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], eax
test edx, edx
je 0x4e7ac8
xor esi, esi
mov dword [esp + 0x24], esi
nop
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x80], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0x78], edx
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x4e7aa4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
add ecx, 0x44
mov eax, dword [eax + 4]
mov eax, dword [esi + eax]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x4e79ae
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
jmp 0x4e7a15
cmp byte [eax], 0x9a
jne 0x4e79c1
mov edx, dword [eax + 0x1c]
call fcn.004e3920
mov edi, eax
mov esi, edx
jmp 0x4e7a0b
mov edx, dword [eax + 0x10]
call fcn.004e36d0
mov ecx, dword [esp + 0x20]
mov esi, edx
mov edx, dword [esp + 0x40]
mov edi, eax
lea ecx, [ecx + 0x44]
mov edx, dword [edx + 0xc]
call fcn.004e36d0
mov ecx, dword [esp + 0x20]
or edi, eax
mov eax, dword [esp + 0x40]
or esi, edx
lea ecx, [ecx + 0x44]
test dword [eax + 4], 0x800
mov edx, dword [eax + 0x14]
je 0x4e7a02
call fcn.004e2980
jmp 0x4e7a07
call fcn.004e3760
or edi, eax
or esi, edx
mov eax, edi
or eax, esi
jne 0x4e7a75
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
mov dword [esp + 0xa8], 0
movaps xmmword [esp + 0x90], xmm0
lea ecx, [esp + 0x90]
movq qword [esp + 0xa0], xmm0
mov edx, eax
mov byte [esp + 0xa4], 1
mov dword [esp + 0x90], 0x4b1470
mov dword [esp + 0x94], 0x4b1580
mov dword [esp + 0xa8], 0
call fcn.004ad790
cmp byte [esp + 0xa4], 0
je 0x4e7aa4
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
not ecx
not eax
and ecx, edi
and eax, esi
or ecx, eax
jne 0x4e7aa4
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
add dword [esp + 0x24], 0x18
inc eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], eax
cmp eax, edx
jl 0x4e7950
jmp 0x4e7ac8
mov edx, dword [esp + 0x30]
inc dword [esp + 0x3c]
cmp byte [esp + 0xc], 0
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
jne 0x4e73f0
jmp 0x4e7aef
cmp byte [eax + 0x1d], 0
jne 0x4e7b00
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x88]
jne 0x4e7b0d
cmp esi, eax
jne 0x4e7b0d
mov al, byte [esp + 0x8c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xc], 0
jne 0x4e7b6f
lea eax, [edx - 1]
mov dword [esp + 0x34], eax
test eax, eax
jle 0x4e7b5d
mov edi, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
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 + 0x14]
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4e7b50
cmp esi, edx
je 0x4e7b65
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
test eax, eax
jg 0x4e7b23
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x34]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or al, 0xff
pop esi
mov esp, ebp
pop ebp
ret