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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x609e44]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp + 0x14]
xor edx, edx
push esi
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x94], ecx
movlpd qword [esp + 0x58], xmm0
cmp word [ebp + 0x10], dx
je 0x4e53c6
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
jne 0x4e5d24
movzx eax, word [ebx]
mov dword [esp + 0x98], eax
cmp eax, 0x3f
ja 0x4e5d24
movzx ebx, ax
xor ecx, ecx
xor esi, esi
mov edi, dword [esp + 0x58]
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 + 0x3c], ebx
cmovae esi, ecx
mov dword [esp + 0x40], edx
xor ecx, esi
mov dword [esp + 0x18], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae esi, ecx
add ecx, 0xffffffff
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x1c]
adc esi, 0xffffffff
and eax, 0x803
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x5c]
neg eax
mov dword [esp + 0x14], esi
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
cmp esi, eax
ja 0x4e5cb2
jb 0x4e5489
cmp edi, dword [esp + 0x78]
jae 0x4e5cb6
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x40], eax
jg 0x4e5ce2
cmp dword [esp + 0x40], 0
jle 0x4e54b8
mov ebx, dword [esp + 0x6c]
or ebx, dword [edx + 8]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x70]
or ebx, dword [edx + 0xc]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
cmp edx, eax
jge 0x4e54e1
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
test eax, 0x800
jne 0x4e5ca2
jmp 0x4e54ef
mov edx, dword [esp + 0x90]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
test dword [edx + 0x24], 0x400
jne 0x4e5cd8
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x4e5510
xor eax, eax
mov word [edx + 0x1e], ax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x4e5746
mov ebx, dword [esp + 0x48]
add ebx, 4
mov dword [esp + 0x20], ebx
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 + 0x30], ecx
cmovae edx, ecx
and ecx, edi
mov eax, edx
mov dword [esp + 0x44], edx
and eax, esi
or ecx, eax
jne 0x4e5726
mov edi, dword [ebx]
test edi, edi
je 0x4e5591
mov eax, dword [edi + 4]
test eax, 0x41000
je 0x4e5591
test eax, 0x40000
je 0x4e558a
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 4]
jmp 0x4e558d
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4e5571
cmp byte [edi], 0xa4
jne 0x4e5722
mov edx, dword [esp + 0x60]
cmp dword [edi + 0x1c], edx
jne 0x4e5722
mov eax, dword [esp + 0x7c]
xor ebx, ebx
movsx ecx, word [edi + 0x20]
push ebx
movzx eax, ax
push eax
push ecx
push edx
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0xc8]
lea edx, [edx + 0x50]
call fcn.004e0fd0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e5622
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
not eax
not ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ecx
mov edx, dword [esi + 0x20]
mov ecx, edx
and ecx, eax
mov eax, dword [esi + 0x24]
and eax, dword [esp + 0x50]
or ecx, eax
jne 0x4e560a
or edx, dword [esi + 0x24]
jne 0x4e5605
test byte [esi + 0xc], 0x82
jne 0x4e5624
test ebx, ebx
cmove ebx, esi
lea ecx, [esp + 0xb8]
call fcn.004e0c80
mov esi, eax
test esi, esi
je 0x4e5622
mov eax, dword [esp + 0x34]
jmp 0x4e55e8
mov esi, ebx
test esi, esi
je 0x4e571e
movzx ebx, word [esi + 0xc]
cmp ebx, 1
jne 0x4e565a
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
je 0x4e5652
mov eax, dword [eax + 0x30]
cmp esi, dword [eax]
je 0x4e5652
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4e5646
cmp ecx, edx
jge 0x4e571e
test bl, 0x82
je 0x4e56ef
cmp word [edi + 0x20], 0
jl 0x4e56ef
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov edi, dword [eax]
mov ecx, edi
mov edx, dword [edx]
call fcn.004914c0
mov ebx, eax
test ebx, ebx
jne 0x4e568c
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov eax, dword [esi]
test dword [eax + 4], 0x200
je 0x4e569f
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x4e56a5
mov esi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x100
jne 0x4e56c8
test esi, esi
je 0x4e56bb
test dword [esi + 4], 0x100
jne 0x4e56c6
mov ecx, edi
call fcn.004914c0
test eax, eax
jne 0x4e56d3
mov edx, esi
mov ecx, edi
call fcn.004914c0
test eax, eax
je 0x4e571e
mov edi, dword [eax]
mov edx, dword [ebx]
sub edi, edx
nop dword [eax]
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x4e5709
test eax, eax
jne 0x4e571b
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
or edi, dword [esp + 0x30]
or esi, dword [esp + 0x44]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jmp 0x4e5726
movzx ecx, byte [eax + 0x5fad68]
movzx eax, byte [esi + 0x5fad68]
sub ecx, eax
jne 0x4e571e
inc edx
jmp 0x4e56e0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x20], 0x14
inc eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x3c]
jl 0x4e5540
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x4e5b4e
test eax, 0x100
je 0x4e5772
mov dword [esp + 0x20], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x4e57b2
mov edx, dword [edx + 0x20]
mov dword [esp + 0x20], edx
test edx, edx
je 0x4e5d24
test byte [edx + 0x38], 4
jne 0x4e5d24
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x4e57a9
mov byte [esp + 0x1c], 1
test eax, 0x8000
je 0x4e57ae
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x28]
xor al, al
mov byte [esp + 0x13], 0
mov dword [esp + 0x2c], eax
xor esi, esi
movzx eax, cx
mov byte [esp + 0x12], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], eax
test eax, eax
je 0x4e5b4e
mov dword [esp + 0x34], esi
nop dword [eax + eax]
movzx edi, word [edx + 0x18]
mov bl, 1
mov byte [esp + 0x11], bl
cmp esi, edi
jge 0x4e5857
movzx eax, word [edx + 0x2a]
cmp esi, eax
jl 0x4e5857
mov ebx, dword [edx + 0x30]
mov eax, dword [esp + 0x7c]
mov esi, dword [ebx + esi*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4e5829
mov eax, dword [esp + 0x1c]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x4e5b31
test cl, 1
je 0x4e584f
mov eax, dword [esp + 0x24]
mov esi, dword [esi]
lea edx, [eax + 1]
cmp edx, edi
jge 0x4e584f
lea ecx, [eax + 1]
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4e5892
inc edx
add ecx, 4
cmp edx, edi
jl 0x4e5841
mov bl, byte [esp + 0x11]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e5896
mov eax, dword [eax + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x1c]
mov cl, byte [esi + eax]
mov eax, dword [esp + 0x20]
and cl, 1
mov byte [esp + 0x11], cl
mov eax, dword [eax + 0xc]
movsx eax, word [eax + 0x28]
cmp edx, eax
mov eax, 0xffffffff
cmove edx, eax
mov eax, dword [esp + 0x20]
jmp 0x4e589e
xor bl, bl
jmp 0x4e5853
or edx, 0xffffffff
mov byte [esp + 0x11], 0
cmp byte [esp + 0x1c], 0
mov dword [esp + 0x44], edx
je 0x4e58cf
test edx, edx
js 0x4e58cf
cmp esi, edi
jl 0x4e58cf
mov eax, dword [eax + 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
xor edi, edi
test bl, bl
je 0x4e59f9
mov esi, dword [esp + 0x48]
add esi, 4
mov dword [esp + 0x30], esi
cmp edi, dword [esp + 0x3c]
jge 0x4e59f9
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 + 0x14]
or edx, ecx
jne 0x4e59e9
mov ecx, dword [esi]
test ecx, ecx
je 0x4e5940
nop dword [eax + eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x4e5940
test eax, 0x40000
je 0x4e5939
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x4e593c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4e5920
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x44]
and al, 0xc0
neg al
sbb al, al
and bl, al
mov bh, bl
cmp edx, 0xffffffff
jl 0x4e5976
cmp byte [ecx], 0xa4
jne 0x4e59e9
mov eax, dword [esp + 0x60]
cmp dword [ecx + 0x1c], eax
jne 0x4e59e9
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x4e59e9
jmp 0x4e5999
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
push dword [esp + 0x60]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.0049aa70
add esp, 4
test eax, eax
jne 0x4e59e9
mov edx, dword [esp + 0x44]
cmp edx, 0xffffffff
je 0x4e5a3b
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004914c0
test eax, eax
jne 0x4e59be
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + ecx*4]
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4e5a26
test ecx, ecx
jne 0x4e5a38
mov bl, bh
test ecx, ecx
je 0x4e5a3b
mov esi, dword [esp + 0x30]
add esi, 0x14
inc edi
mov dword [esp + 0x30], esi
test bl, bl
jne 0x4e58e4
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4e5a0c
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x4e5a11
mov byte [esp + 0x1c], 0
cmp byte [esp + 0x2c], 0
je 0x4e5b4e
mov byte [esp + 0x1c], 1
jmp 0x4e5b59
movzx eax, byte [eax + 0x5fad68]
movzx ecx, byte [ecx + 0x5fad68]
sub ecx, eax
jne 0x4e59df
inc edx
jmp 0x4e59d0
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
je 0x4e5a55
lea eax, [ebx + 1]
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
mov byte [esp + 0x3b], 1
jne 0x4e5ad7
mov ecx, dword [esp + 0x48]
lea eax, [edi + edi*4]
mov dl, byte [ecx + eax*4 + 0xc]
and dl, 1
cmp byte [esp + 0x13], 0
je 0x4e5aa3
mov dh, byte [esp + 0x11]
xor ecx, ecx
xor dh, byte [esp + 0x12]
movzx eax, byte [esp + 0x3b]
cmp dh, dl
mov dl, byte [esp + 0x12]
cmove ecx, eax
mov byte [esp + 0x12], dl
mov dl, byte [esp + 0x13]
mov byte [esp + 0x13], dl
test cl, cl
je 0x4e59f9
jmp 0x4e5ad7
xor dl, byte [esp + 0x11]
mov byte [esp + 0x12], dl
je 0x4e5ad2
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 [esp + 0x94]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x48]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0xc], 2
je 0x4e5af8
movzx eax, word [esi + 0x18]
cmp ebx, eax
jne 0x4e59f9
or dword [esi + 0x24], 0x80000
cmp dword [esp + 0x44], 0xffffffff
mov eax, 1
mov edx, dword [esp + 0x2c]
movzx edx, dl
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
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 + 0x14], ecx
mov esi, dword [esp + 0x24]
add dword [esp + 0x34], 0x14
inc esi
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x58]
jl 0x4e57e0
jmp 0x4e5a11
cmp byte [esp + 0x1c], 0
je 0x4e5c8e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x3c]
or eax, dword [edx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
or eax, dword [edx + 0xc]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x4e5c96
mov ebx, dword [esp + 0x48]
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 0x4e5c64
mov ebx, dword [ebx]
test ebx, ebx
je 0x4e5bd4
mov ecx, dword [esp + 0x4c]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004e06a0
mov ecx, edx
jmp 0x4e5be5
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x34], ecx
jne 0x4e5c3c
mov dword [esp + 0xa0], fcn.00493910
mov eax, 1
mov word [esp + 0xb0], ax
mov dword [esp + 0xa4], 0x4937e0
mov dword [esp + 0xb4], 0
test ebx, ebx
je 0x4e5c3c
mov edx, ebx
lea ecx, [esp + 0x9c]
call fcn.0048e580
cmp word [esp + 0xb0], 0
je 0x4e5c64
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x34]
or ecx, eax
jne 0x4e5c64
or dword [esp + 0x18], esi
mov esi, dword [esp + 0x14]
or esi, edi
mov dword [esp + 0x14], esi
jmp 0x4e5c68
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 + 0x3c]
jl 0x4e5b90
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
jmp 0x4e5c9a
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc dword [esp + 0x40]
test cl, cl
jne 0x4e5471
mov eax, dword [esp + 0x74]
cmp edi, dword [esp + 0x78]
jne 0x4e5ce2
cmp esi, eax
jne 0x4e5ce2
mov al, byte [esp + 0x98]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
cmp byte [edx + 0x1d], 0
je 0x4e5ce2
test al, al
jns 0x4e5cbc
test cl, cl
jne 0x4e5d52
dec ebx
test ebx, ebx
jle 0x4e5d24
mov edi, dword [esp + 0x14]
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, dword [esp + 0x18]
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4e5d1f
cmp esi, edx
je 0x4e5d3b
dec ebx
test ebx, ebx
jg 0x4e5cf0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret