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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov esi, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], esi
mov eax, dword [edi + 8]
mov dword [esp + 0x14], edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], eax
call fcn.004e6160
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
mov esi, dword [esi + 0x14]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [ecx + 0xc]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, esi
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x4c], ecx
cmp esi, dword [esp + 0x58]
jae 0x514c75
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x514b41
test byte [esi + 0x14], 2
jne 0x514b41
xorps xmm0, xmm0
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x30]
lea ecx, [esp + 0x60]
mov edx, dword [esi]
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
mov byte [esp + 0x74], 3
mov dword [esp + 0x60], 0x4e5d30
mov dword [esp + 0x64], 0x4e5e40
mov dword [esp + 0x78], eax
call fcn.004e20f0
cmp byte [esp + 0x74], 0
je 0x514b3d
mov edx, dword [esi]
mov ecx, dword [edi]
push 0
push 0
call fcn.004e4f40
mov edx, dword [esp + 0x5c]
mov ecx, dword [edi]
push eax
call fcn.004e4a00
add esp, 0xc
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
cmp eax, dword [edx + 0x30]
jne 0x514c56
test byte [esi + 0x12], 2
je 0x514c56
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x514c56
mov eax, dword [esi + 0xc]
test eax, eax
js 0x514c56
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0x15]
mov ecx, dword [esi]
call fcn.004e43c0
test eax, eax
je 0x514c52
mov edx, dword [esi + 0xc]
xor edi, edi
cmp edx, 0x40
jl 0x514ba6
mov dword [esp + 0x34], SysReAllocString
jmp 0x514bbf
mov eax, edx
xor ecx, ecx
bts edi, eax
cmp eax, 0x20
cmovae ecx, edi
xor edi, ecx
cmp eax, 0x40
cmovae ecx, edi
mov dword [esp + 0x34], ecx
cmp byte [esp + 0xf], 0
jne 0x514bec
lea ecx, [edx + edx*2]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
push dword [eax + ecx*8]
push dword [edx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.004b68a0
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x34]
mov ecx, edi
and eax, dword [esp + 0x44]
and ecx, dword [esp + 0x40]
or ecx, eax
mov eax, dword [esp + 0x10]
jne 0x514c48
mov ecx, dword [esp + 0x14]
inc eax
mov edx, dword [esp + 0x4c]
push eax
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx]
call fcn.00517cd0
add esp, 4
test eax, eax
jne 0x515318
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
or dword [esp + 0x40], edi
mov eax, dword [eax + 0x30]
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x44]
or ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], ecx
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
jmp 0x514c5a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
add esi, 0x30
cmp esi, dword [esp + 0x58]
jb 0x514ad0
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
jmp 0x514c7d
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov word [ecx + 0x28], ax
not esi
mov word [ecx + 0x18], ax
not edi
mov dword [ecx + 0x24], 0x4241
or esi, 0x80000000
mov ecx, dword [edx + 0x40]
and edi, ecx
mov eax, dword [edx + 0x44]
and esi, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
xor esi, esi
mov dword [esp + 0x48], ecx
movzx edi, word [edx + 0x26]
mov edx, 0x3f
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edi
cmp dx, di
jge 0x514cce
mov dword [esp + 0x34], edx
jmp 0x514cd9
movsx edx, di
mov dword [esp + 0x34], edx
test edx, edx
jle 0x514d18
mov edi, dword [esp + 0x34]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x40]
and ecx, dword [esp + 0x44]
or edx, ecx
je 0x514d07
inc dword [esp + 0x10]
inc esi
cmp esi, edi
jl 0x514ce0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
test eax, eax
jg 0x514d32
jl 0x514d22
test ecx, ecx
jae 0x514d32
mov ecx, dword [esp + 0x10]
movsx eax, di
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc eax
movzx eax, ax
mov dword [esp + 0x48], eax
cwde
lea ecx, [eax*4 + 7]
lea eax, [eax + eax*4]
and ecx, 0xfffffff8
add eax, 9
mov dword [esp + 0x38], ecx
and eax, 0xfffffff8
add ecx, 0x38
add eax, ecx
mov ecx, dword [esi]
cdq
push edx
push eax
mov dword [esp + 0x20], eax
call fcn.004b49d0
mov edi, eax
add esp, 8
mov dword [esp + 0x2c], edi
test edi, edi
je 0x51531c
push dword [esp + 0x18]
push 0
push edi
call fcn.006e6ec0
mov esi, dword [esp + 0x54]
lea ecx, [edi + 0x38]
movsx edx, si
add esp, 0xc
mov dword [edi + 0x20], ecx
xorps xmm0, xmm0
add ecx, dword [esp + 0x38]
mov word [edi + 0x30], si
lea eax, [edx + 1]
mov dword [edi + 8], ecx
movlpd qword [esp + 0x18], xmm0
lea eax, [ecx + eax*2]
mov dword [edi + 4], eax
lea eax, [eax + edx*2]
mov dword [edi + 0x1c], eax
lea eax, [esi - 1]
mov word [edi + 0x2e], ax
xor esi, esi
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x1c], edi
mov eax, dword [esp + 0x30]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [edi], str.auto_index
mov edi, dword [eax + 0x14]
cmp edi, dword [esp + 0x58]
jae 0x514f1b
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
nop
mov eax, dword [edi + 8]
cmp eax, dword [edx + 0x30]
jne 0x514f0e
test byte [edi + 0x12], 2
je 0x514f0e
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x514f0e
mov eax, dword [edi + 0xc]
test eax, eax
js 0x514f0e
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0x15]
mov ecx, dword [edi]
call fcn.004e43c0
test eax, eax
je 0x514f0a
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp ecx, 0x40
jl 0x514e62
mov edx, SysReAllocString
jmp 0x514e75
xor edx, edx
bts eax, ecx
cmp ecx, 0x20
cmovae edx, eax
xor eax, edx
cmp ecx, 0x40
cmovae edx, eax
mov ecx, eax
mov dword [esp + 0x38], eax
and ecx, dword [esp + 0x48]
mov eax, edx
and eax, dword [esp + 0x28]
or ecx, eax
mov dword [esp + 0x18], edx
jne 0x514f0a
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov ax, word [edi + 0xc]
mov word [ecx + esi*2], ax
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x18], eax
test dword [edx + 4], 0x100
jne 0x514eeb
test eax, eax
je 0x514eda
test dword [eax + 4], 0x100
je 0x514eda
mov edx, eax
jmp 0x514eeb
mov ecx, dword [esp + 0x14]
call fcn.004e41d0
test eax, eax
jne 0x514efd
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
call fcn.004e41d0
mov ecx, str.BINARY
test eax, eax
je 0x514eff
mov ecx, dword [eax]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x20]
mov dword [eax + esi*4], ecx
inc esi
mov edx, dword [esp + 0x20]
add edi, 0x30
cmp edi, dword [esp + 0x58]
jb 0x514e00
xor edi, edi
cmp dword [esp + 0x34], edi
jle 0x514f63
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 + 0x40]
and ecx, dword [esp + 0x44]
or edx, ecx
je 0x514f5c
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov word [eax + esi*2], di
mov eax, dword [ecx + 0x20]
mov dword [eax + esi*4], str.BINARY
inc esi
inc edi
cmp edi, dword [esp + 0x34]
jl 0x514f23
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x44], 0
jg 0x514fad
jl 0x514f75
cmp dword [eax + 0x40], 0
jae 0x514fad
mov edi, dword [esp + 0x30]
mov eax, 0x3f
mov edx, dword [esp + 0x2c]
cmp ax, word [edi + 0x26]
jge 0x514fb1
mov ecx, eax
nop word [eax + eax]
mov eax, dword [edx + 4]
mov word [eax + esi*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + esi*4], str.BINARY
inc esi
movsx eax, word [edi + 0x26]
cmp ecx, eax
jl 0x514f90
jmp 0x514fb1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
mov word [eax + esi*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x50]
mov dword [eax + esi*4], str.BINARY
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x44]
mov dword [ecx + 8], eax
inc dword [esi + 0x44]
mov eax, dword [ecx + 8]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x18], ecx
cmp dword [eax + 0x54], ecx
jg 0x514fff
mov ecx, edi
call fcn.004d1b20
test eax, eax
jne 0x515033
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x38
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x2c]
mov esi, dword [esi + 8]
push 0xfffffffffffffffa
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004f3960
add esp, 4
or edx, 0xffffffff
mov ecx, esi
push eax
call fcn.004d23c0
mov esi, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x50]
inc dword [esi + 0x64]
mov eax, dword [ecx + 4]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x30], edx
cmp dword [eax + 0x54], edx
jg 0x515091
mov ecx, edi
call fcn.004d1b20
test eax, eax
je 0x51508d
mov dword [esp + 0x30], 1
jmp 0x5150c5
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x54]
test edx, edx
je 0x515144
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x24], eax
inc eax
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x24]
dec eax
test dword [esp + 0x24], eax
jne 0x515110
mov eax, dword [esp + 0x24]
mov edx, dword [ecx + 0x70]
mov ecx, dword [ecx]
push 0
lea eax, [eax*8 + 4]
push eax
call fcn.004b4b50
mov ecx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x54]
mov dword [ecx + 0x70], eax
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x515122
mov ecx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0xffffffff
mov eax, dword [esp + 0x24]
mov ecx, esi
not eax
push 0x10
push eax
mov dword [esp + 0x2c], eax
call fcn.004e9460
mov eax, dword [esp + 0x54]
add esp, 8
or dword [eax + 0x24], 0x20000
mov al, byte [esi + 0x13]
test al, al
jne 0x515153
inc dword [esi + 0x48]
mov eax, dword [esi + 0x48]
jmp 0x51515f
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, esi
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
push dword [eax + 4]
call fcn.004f57b0
mov eax, dword [esp + 0x68]
add esp, 0x18
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], ecx
jg 0x5151aa
mov ecx, edi
call fcn.004d1b20
test eax, eax
jne 0x5151de
mov ecx, dword [esp + 0x3c]
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x6e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x5151f0
mov eax, dword [edi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x10
cmp dword [esp + 0x54], 0
je 0x515224
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x18]
not eax
mov dword [esp + 0x24], eax
test eax, eax
js 0x51521d
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x51521d
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x20]
mov dword [ecx + esi*4], eax
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], ecx
jg 0x51524d
mov ecx, edi
call fcn.004d1b20
test eax, eax
jne 0x515284
mov ecx, dword [esp + 0x3c]
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 9
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov byte [ecx + 3], 0
mov dword [ecx + 4], eax
lea eax, [edx + 1]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x515288
mov edx, dword [esp + 0x30]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x51529a
mov eax, dword [edi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 3
cmp dword [edi + 0x20], edx
jbe 0x5152ac
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
mov edx, dword [edi + 0x20]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x58], ecx
test edx, edx
je 0x5152f0
mov al, byte [esi + 0x13]
mov byte [esp + 0xf], al
cmp al, 8
jae 0x5152f0
xor ecx, ecx
lea eax, [esi + 0x74]
nop
cmp dword [eax + 0xc], edx
je 0x5152ec
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x5152d0
movzx eax, byte [esp + 0xf]
mov dword [esi + eax*4 + 0x18], edx
inc byte [esi + 0x13]
jmp 0x5152f0
mov byte [eax + 6], 1
mov ecx, esi
call fcn.004e75c0
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x5c]
cmp edx, eax
jbe 0x51530c
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
jmp 0x51531c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
mov esi, dword [esi]
test edi, edi
je 0x515387
test dword [edi + 4], 0x4000
jne 0x515375
mov edx, dword [edi + 0xc]
mov ecx, esi
call fcn.004e4e10
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.004e4e10
test dword [edi + 4], 0x10000
je 0x515356
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.004b4750
test dword [edi + 4], 0x800
mov ecx, esi
mov edx, dword [edi + 0x14]
je 0x515370
push 1
call fcn.00503c20
add esp, 4
jmp 0x515375
call fcn.004e5ba0
test dword [edi + 4], 0x8000
jne 0x515387
mov edx, edi
mov ecx, esi
call fcn.004b4750
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret