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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, ecx
mov dword [esp + 0x40], edx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x90], ecx
xor ecx, ecx
mov eax, dword [eax]
push esi
push edi
mov dword [esp + 0x68], eax
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], cx
je 0x519c79
test byte [eax + 0x3c], 0x80
je 0x519c79
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
movzx eax, word [edx]
mov dword [esp + 0x9c], eax
cmp eax, 0x3f
ja 0x519c63
movzx esi, ax
xor edx, edx
xor edi, edi
movlpd qword [esp + 0x70], xmm0
mov eax, esi
movlpd qword [esp + 0x50], xmm0
bts edx, eax
mov byte [esp + 0x24], 1
cmp eax, 0x20
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], ecx
cmovae edi, edx
xor edx, edi
cmp eax, 0x40
mov eax, dword [esp + 0x74]
cmovae edi, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
add edx, 0xffffffff
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
adc edi, 0xffffffff
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x6c], eax
nop dword [eax]
mov eax, dword [esp + 0x5c]
cmp edi, eax
ja 0x51a3ce
jb 0x519d1b
cmp edx, dword [esp + 0x8c]
jae 0x51a3d5
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x4c], eax
jg 0x51a3ca
cmp dword [esp + 0x4c], 0
jle 0x519d4a
mov esi, dword [esp + 0x6c]
or esi, dword [ecx + 8]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x60]
or esi, dword [ecx + 0xc]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jge 0x519d61
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ecx*4]
jmp 0x519d68
mov eax, dword [esp + 0x94]
test dword [eax + 0x24], 0x400
mov dword [esp + 0x40], eax
jne 0x51a3c4
mov edx, eax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
shl ecx, 4
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax + 0x38]
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x28], eax
test esi, esi
jle 0x519ef5
xor esi, esi
mov dword [esp + 0x30], esi
nop dword [eax + eax]
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, dword [esp + 0x1c]
mov eax, edx
mov dword [esp + 0x34], edx
and eax, edi
or ecx, eax
jne 0x519ed5
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov esi, dword [esi + eax]
test esi, esi
je 0x519e12
nop dword [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x1000
je 0x519e12
test eax, 0x40000
je 0x519e0b
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov esi, dword [eax]
jmp 0x519e0e
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x519df0
cmp byte [esi], 0x9a
jne 0x519ed5
mov edx, dword [esp + 0x80]
cmp dword [esi + 0x1c], edx
jne 0x519ed5
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
not eax
push 0
push 0x82
not ecx
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
add ecx, 0x148
call fcn.005136f0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x519ed1
test byte [edi + 0x12], 2
je 0x519eb7
cmp word [esi + 0x20], 0
jl 0x519eb7
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + eax]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
call fcn.004e41d0
test eax, eax
jne 0x519e8e
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
mov ecx, dword [eax]
call fcn.004e41d0
test eax, eax
jne 0x519ea8
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
push dword [eax]
push esi
call fcn.004b7610
add esp, 8
test eax, eax
jne 0x519ed1
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
or edx, dword [esp + 0x50]
or edi, dword [esp + 0x34]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
jmp 0x519ed5
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add dword [esp + 0x30], 0x18
inc eax
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x3c]
jl 0x519db0
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x51a1f4
test eax, 0x100
je 0x519f19
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], edi
lea eax, [edi + 1]
jmp 0x519f47
mov edi, dword [edx + 0x1c]
mov dword [esp + 0x34], edi
test edi, edi
je 0x519c63
test byte [edi + 0x34], 4
jne 0x519c63
movzx eax, word [edi + 0x2e]
cmp byte [edi + 0x32], 0
mov dword [esp + 0x50], eax
movzx eax, word [edi + 0x30]
setne byte [esp + 0x24]
movzx eax, ax
xor cl, cl
xor esi, esi
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x78], eax
test eax, eax
je 0x51a1f4
nop dword [eax]
movzx ecx, word [edx + 0x18]
cmp esi, ecx
jge 0x519fa7
cmp word [edx + 0x2a], 0
jne 0x519fa7
mov eax, dword [edx + 0x30]
mov eax, dword [eax + esi*4]
movzx eax, word [eax + 0x12]
test al, 0x82
je 0x519fa7
test al, 0x80
mov ecx, 0
mov eax, dword [esp + 0x24]
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x24], cl
jmp 0x51a1dc
test edi, edi
je 0x519fcd
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x30], edx
mov al, byte [esi + eax]
mov byte [esp + 0x17], al
mov eax, dword [edi + 0xc]
movsx eax, word [eax + 0x24]
cmp edx, eax
jne 0x519fd9
jmp 0x519fd2
mov byte [esp + 0x17], 0
or edx, 0xffffffff
mov dword [esp + 0x30], edx
cmp byte [esp + 0x24], 0
je 0x51a006
test edx, edx
js 0x51a006
cmp esi, ecx
jl 0x51a006
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*2]
mov edx, dword [esp + 0x24]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0x14], 0
cmove edx, esi
mov dword [esp + 0x24], edx
xor esi, esi
mov byte [esp + 0x16], 1
xor edi, edi
nop
cmp esi, dword [esp + 0x3c]
jge 0x51a10a
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 + 0x1c]
and ecx, dword [esp + 0x18]
or edx, ecx
jne 0x51a0fb
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov edx, dword [edi + eax]
mov eax, edx
mov dword [esp + 0x70], edx
test eax, eax
je 0x51a079
mov ecx, dword [eax + 4]
test ecx, 0x1000
je 0x51a079
test ecx, 0x40000
je 0x51a072
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax]
jmp 0x51a075
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x51a055
mov ecx, dword [ebp + 0xc]
and ecx, 0x300
neg ecx
sbb cl, cl
and cl, byte [esp + 0x16]
cmp byte [eax], 0x9a
mov byte [esp + 0x16], cl
mov byte [esp + 0x3b], cl
jne 0x51a0fb
mov edx, dword [esp + 0x80]
cmp dword [eax + 0x1c], edx
mov edx, dword [esp + 0x70]
mov byte [esp + 0x16], cl
jne 0x51a0fb
movsx eax, word [eax + 0x20]
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jne 0x51a0fb
test ecx, ecx
js 0x51a138
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
call fcn.004e41d0
mov ecx, eax
test ecx, ecx
jne 0x51a0d7
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov al, byte [esp + 0x3b]
mov edx, dword [esp + 0x58]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
push dword [eax + edx*4]
push dword [ecx]
call fcn.004b7610
add esp, 8
test eax, eax
je 0x51a138
inc esi
add edi, 0x18
cmp byte [esp + 0x16], 0
jne 0x51a010
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x51a11d
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x51a122
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x28]
test cl, cl
je 0x51a1f4
mov byte [esp + 0x24], 1
jmp 0x51a1ff
test dword [ebp + 0xc], 0x100
jne 0x51a19f
cmp byte [esp + 0x23], 0
lea ecx, [esi + esi*2]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
je 0x51a167
mov dl, byte [esp + 0x17]
xor dl, byte [esp + 0x22]
cmp dl, byte [eax + ecx*8 + 0xc]
sete al
test al, al
je 0x51a10a
jmp 0x51a19f
mov dh, byte [eax + ecx*8 + 0xc]
xor dh, byte [esp + 0x17]
mov byte [esp + 0x22], dh
je 0x51a19a
mov eax, dword [esp + 0x4c]
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 + 0x98]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x23], 1
cmp dword [esp + 0x30], 0
mov eax, 1
mov edx, dword [esp + 0x28]
movzx edx, dl
cmovl edx, eax
xor eax, eax
bts eax, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x40]
xor ecx, ecx
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
mov esi, dword [esp + 0x58]
cmovae ecx, eax
or dword [esp + 0x1c], eax
or dword [esp + 0x18], ecx
inc esi
mov dword [esp + 0x58], esi
cmp esi, dword [esp + 0x78]
jge 0x51a122
mov edi, dword [esp + 0x34]
jmp 0x519f70
cmp byte [esp + 0x24], 0
je 0x51a3a4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x3c]
or eax, dword [ecx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x44]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x50], eax
test esi, esi
jle 0x51a3ac
xor esi, esi
mov dword [esp + 0x34], esi
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x78], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x1c]
mov eax, edx
mov dword [esp + 0x70], edx
and eax, dword [esp + 0x18]
or ecx, eax
jne 0x51a388
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
add ecx, 0x44
mov eax, dword [eax + 4]
mov eax, dword [esi + eax]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x51a295
xorps xmm0, xmm0
movlpd qword [esp + 0x80], xmm0
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
jmp 0x51a2fc
cmp byte [eax], 0x9a
jne 0x51a2a8
mov edx, dword [eax + 0x1c]
call fcn.00513110
mov edi, eax
mov esi, edx
jmp 0x51a2f2
mov edx, dword [eax + 0x10]
call fcn.00513150
mov ecx, dword [esp + 0x2c]
mov esi, edx
mov edx, dword [esp + 0x28]
mov edi, eax
lea ecx, [ecx + 0x44]
mov edx, dword [edx + 0xc]
call fcn.00513150
mov ecx, dword [esp + 0x2c]
or edi, eax
mov eax, dword [esp + 0x28]
or esi, edx
lea ecx, [ecx + 0x44]
test dword [eax + 4], 0x800
mov edx, dword [eax + 0x14]
je 0x51a2e9
call fcn.00513250
jmp 0x51a2ee
call fcn.005131e0
or edi, eax
or esi, edx
mov eax, edi
or eax, esi
jne 0x51a35c
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
mov dword [esp + 0xb8], 0
movaps xmmword [esp + 0xa0], xmm0
lea ecx, [esp + 0xa0]
movq qword [esp + 0xb0], xmm0
mov edx, eax
mov byte [esp + 0xb4], 1
mov dword [esp + 0xa0], 0x4e5d30
mov dword [esp + 0xa4], 0x4e5e40
mov dword [esp + 0xb8], 0
call fcn.004e20f0
cmp byte [esp + 0xb4], 0
je 0x51a388
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
not ecx
not eax
and ecx, edi
and eax, esi
or ecx, eax
jne 0x51a388
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
add dword [esp + 0x34], 0x18
inc eax
mov esi, dword [esp + 0x34]
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x3c]
jl 0x51a231
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
inc dword [esp + 0x4c]
cmp byte [esp + 0x24], 0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
je 0x51a3ca
jmp 0x519d00
cmp byte [eax + 0x1d], 0
jne 0x51a3db
mov eax, dword [esp + 0x5c]
cmp edx, dword [esp + 0x8c]
jne 0x51a3f6
cmp edi, eax
jne 0x51a3f6
mov al, byte [esp + 0x9c]
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x24], 0
jne 0x51a478
lea eax, [esi - 1]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x519c63
nop dword [eax]
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 + 0x1c]
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x51a43d
cmp esi, edx
je 0x51a460
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 0x44], eax
test eax, eax
jg 0x51a410
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x44]
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xcc]
or al, 0xff
pop edi
pop esi
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret