Function at 0x51edd0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5722db
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c8
mov eax, dword [0x5c4008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1d0], esi
mov ecx, 0x70a6a4
call fcn.0056b0a5
push 0x40
call fcn.0055144c
mov dword [ebp - 0x1c8], eax
add esp, 4
mov dword [ebp - 0x1ac], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x14], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov byte [eax + 0x24], 0
mov dword [eax], vtable.CResourceItemSkinn.0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c4], eax
cmp eax, 0x18
jb 0x51eec9
lea ecx, [ebp - 0x1c4]
call fcn.00523f80
jmp 0x51eeda
mov byte [ebp - 0x1b8], 1
mov dword [ebp - 0x1c0], 0
push 0x17c
lea eax, [ebp - 0x1a0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00552c40
add esp, 0xc
lea eax, [ebp - 0x1c4]
lea ecx, [esi + 0x28]
push eax
call fcn.00524330
cmp byte [ebp - 0x1b8], 0
mov ecx, 0x18
mov edi, dword [ebp - 0x1c4]
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 0x1b7], 0
jne 0x51ef80
cmp edi, 0x20
jl 0x51f185
mov esi, dword [ebp - 0x1c0]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x1a4], eax
lea ecx, [eax + 0x18]
lea eax, [ecx + 8]
cmp eax, edi
jg 0x51f185
cmp edx, 9
ja 0x51f185
test edx, edx
jne 0x51ef75
cmp dword [ebp - 0x1a4], edx
jne 0x51f185
mov byte [ebp - 0x1b7], 1
jmp 0x51f18c
add esi, 0x20
mov dword [ebp - 0x1bc], ecx
jmp 0x51ef88
mov edx, dword [ebp - 0x1d8]
xor esi, esi
mov eax, ecx
test esi, esi
je 0x51f18c
cmp edx, 6
je 0x51efac
cmp byte [ebp - 0x1b8], 0
jne 0x51f18c
add eax, 8
jmp 0x51f132
mov eax, dword [esi]
sub eax, 1
je 0x51f0ae
sub eax, 1
je 0x51f036
sub eax, 1
jne 0x51f11d
mov eax, dword [esi + 8]
lea edx, [esi + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x44], edx
cmp eax, 0x100
jge 0x51f029
imul edi, eax, 0x2c
xor ecx, ecx
mov eax, dword [esi + 8]
add edi, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
xor edx, edx
mov dword [ebp - 0x38], eax
add esp, 4
cmp dword [esi + 8], edx
jle 0x51f014
movzx ecx, byte [edx + edi]
mov word [eax + edx*2], cx
inc edx
cmp edx, dword [esi + 8]
jl 0x51f006
mov ecx, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x1c4]
mov byte [ebp - 0x26], 1
jmp 0x51f11d
imul eax, eax, 0x2c
add eax, edx
mov dword [ebp - 0x38], eax
jmp 0x51f11d
mov edx, dword [esi + 8]
lea eax, [esi + 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [esi + 4]
mov dword [ebp - 0x48], eax
cmp edx, 0x100
jge 0x51f0a0
lea ecx, [edx + edx*4]
mov edx, 2
lea edi, [eax + ecx*8]
mov eax, dword [esi + 8]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
xor edx, edx
mov dword [ebp - 0x3c], eax
add esp, 4
cmp dword [esi + 8], edx
jle 0x51f08e
nop dword [eax]
movzx ecx, byte [edx + edi]
mov word [eax + edx*2], cx
inc edx
cmp edx, dword [esi + 8]
jl 0x51f080
mov ecx, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x1c4]
mov byte [ebp - 0x27], 1
jmp 0x51f11d
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x48]
lea eax, [edx + eax*8]
mov dword [ebp - 0x3c], eax
jmp 0x51f11d
mov edx, dword [esi + 8]
lea eax, [esi + 0xc]
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 4]
mov dword [ebp - 0x4c], eax
cmp edx, 0x100
jge 0x51f111
lea ecx, [edx + edx*8]
mov edx, 2
lea edi, [eax + ecx*4]
mov eax, dword [esi + 8]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
xor edx, edx
mov dword [ebp - 0x40], eax
add esp, 4
cmp dword [esi + 8], edx
jle 0x51f0ff
movzx ecx, byte [edx + edi]
mov word [eax + edx*2], cx
inc edx
cmp edx, dword [esi + 8]
jl 0x51f0f1
mov ecx, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x1c4]
mov byte [ebp - 0x28], 1
jmp 0x51f11d
lea eax, [edx + edx*8]
mov edx, dword [ebp - 0x4c]
lea eax, [edx + eax*4]
mov dword [ebp - 0x40], eax
cmp byte [ebp - 0x1b8], 0
jne 0x51f18c
cmp byte [ebp - 0x1b7], 0
jne 0x51f18c
lea eax, [ecx + 8]
cmp eax, edi
jg 0x51f185
mov esi, dword [ebp - 0x1c0]
add esi, ecx
mov eax, dword [esi + 4]
add ecx, eax
mov edx, dword [esi]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1a4], ecx
lea eax, [ecx + 8]
cmp eax, edi
jg 0x51f185
cmp edx, 9
ja 0x51f185
test edx, edx
je 0x51f173
mov dword [ebp - 0x1bc], ecx
add esi, 8
je 0x51f18c
mov eax, ecx
jmp 0x51ef92
cmp dword [ebp - 0x1b0], 0
jne 0x51f185
mov byte [ebp - 0x1b7], 1
jmp 0x51f18c
mov byte [ebp - 0x1b8], 1
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x30], esi
mov eax, dword [0x6d07c4]
cmovg esi, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], esi
cmovg esi, dword [ebp - 0x2c]
add eax, 0x2c
imul eax, esi
push eax
call fcn.005518c7
mov dword [ebp - 0x54], eax
xor ecx, ecx
add esp, 4
mov eax, esi
mov edi, 2
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
mov dword [ebp - 0x50], eax
xor ecx, ecx
add esp, 4
mov eax, esi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
mov dword [ebp - 0x60], eax
lea edi, [ebp - 0x18c]
add esp, 4
or eax, 0xffffffff
mov ecx, 0x3c
xorps xmm0, xmm0
rep stosd dword es:[edi], eax
lea eax, [esi + esi]
movq qword [ebp - 0x6c], xmm0
push eax
push 0xff
push dword [ebp - 0x60]
movups xmmword [ebp - 0x9c], xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x8c], xmm0
movups xmmword [ebp - 0x7c], xmm0
call fcn.00552c40
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
movss xmm1, dword [0x5b4600]
mov esi, dword [ebp - 0x54]
test ecx, ecx
je 0x51f860
mov eax, dword [ebp - 0x40]
xor edx, edx
test eax, eax
je 0x51f862
movzx eax, word [eax]
xor edi, edi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1a0], edx
lea eax, [eax + eax*8]
mov dword [ebp - 0x5c], esi
movzx eax, byte [ecx + eax*4 + 0x23]
mov dword [ebp - 0x19c], edx
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x198], edi
cmp dword [ebp - 0x34], edx
jle 0x51f6ea
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1b0], ecx
movzx eax, word [eax + edi*2]
lea eax, [eax + eax*8]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2 + 2]
lea eax, [eax + eax*8]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2 + 4]
lea eax, [eax + eax*8]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1d4]
movzx edi, byte [ecx + eax*4 + 0x23]
cmp dword [ebp - 0x190], edi
mov dword [ebp - 0x1b4], edi
mov edi, dword [ebp - 0x198]
je 0x51f326
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x190], eax
mov eax, dword [0x6d07c0]
jmp 0x51f3d2
movzx eax, byte [ecx + eax*4 + 0x20]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51f353
mov byte [ebp + eax - 0x9c], 1
mov eax, 1
mov edx, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x1ac], edx
jmp 0x51f359
mov eax, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1cc]
movzx edi, byte [ecx + edi*4 + 0x20]
mov dword [ebp - 0x1a8], edi
cmp byte [ebp + edi - 0x9c], 0
jne 0x51f38e
mov edx, edi
inc eax
mov byte [ebp + edx - 0x9c], 1
mov edx, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x1ac], edx
mov edi, dword [ebp - 0x1a4]
movzx edi, byte [ecx + edi*4 + 0x20]
mov dword [ebp - 0x1a8], edi
cmp byte [ebp + edi - 0x9c], 0
mov edi, dword [ebp - 0x198]
jne 0x51f3d3
mov edx, dword [ebp - 0x1a8]
mov byte [ebp + edx - 0x9c], 1
mov edx, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x198]
mov dword [ebp - 0x1ac], edx
inc eax
add eax, edx
cmp eax, dword [0x6d07c0]
jg 0x51f6af
mov eax, dword [ebp - 0x1d4]
movzx eax, byte [ecx + eax*4 + 0x20]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp + eax*4 - 0x18c], 0xffffffff
jne 0x51f41f
mov dword [ebp + eax*4 - 0x18c], edx
mov edx, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
inc edx
mov edi, dword [ebp - 0x198]
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1a0], edx
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + edi*2]
mov edi, 0xffff
mov ecx, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1b4], ecx
cmp word [eax + ecx*2], di
mov edi, dword [ebp - 0x198]
jne 0x51f4ae
mov ecx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x1d4]
movups xmm0, xmmword [ecx + eax*4]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1a8]
mov al, byte [ebp + eax*4 - 0x18c]
mov byte [esi + 0x20], al
add esi, 0x24
cmp dword [0x6d07c4], 0
mov dword [ebp - 0x5c], esi
je 0x51f493
mov dword [esi], 0x3f800000
add esi, dword [0x6d07c4]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x60]
movzx edx, word [edx + edi*2]
mov cx, word [ebp - 0x58]
inc dword [ebp - 0x58]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2]
jmp 0x51f4b4
mov eax, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x1b0]
movzx ecx, ax
mov eax, dword [ebp - 0x60]
mov cx, word [eax + ecx*2]
mov eax, dword [ebp - 0x50]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x1cc]
movzx ecx, byte [edx + eax*4 + 0x20]
mov dword [ebp - 0x1a8], ecx
cmp dword [ebp + ecx*4 - 0x18c], 0xffffffff
jne 0x51f50f
mov eax, dword [ebp - 0x1ac]
mov dword [ebp + ecx*4 - 0x18c], eax
mov eax, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
inc eax
mov edi, dword [ebp - 0x198]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2 + 2]
mov edi, 0xffff
mov ecx, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1b4], ecx
cmp word [eax + ecx*2], di
mov edi, dword [ebp - 0x198]
jne 0x51f5a4
mov eax, dword [ebp - 0x1cc]
movups xmm0, xmmword [edx + eax*4]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edx + eax*4 + 0x10]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [edx + eax*4 + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1a8]
mov al, byte [ebp + eax*4 - 0x18c]
mov byte [esi + 0x20], al
add esi, 0x24
cmp dword [0x6d07c4], 0
mov dword [ebp - 0x5c], esi
je 0x51f57e
mov dword [esi], 0x3f800000
add esi, dword [0x6d07c4]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x40]
mov cx, word [ebp - 0x58]
inc dword [ebp - 0x58]
movzx edx, word [eax + edi*2 + 2]
mov eax, dword [ebp - 0x60]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1b0]
movzx eax, word [eax + edi*2 + 2]
jmp 0x51f5aa
mov eax, dword [ebp - 0x1b4]
movzx ecx, ax
mov eax, dword [ebp - 0x60]
mov cx, word [eax + ecx*2]
mov eax, dword [ebp - 0x50]
mov word [eax + edi*2 + 2], cx
mov eax, dword [ebp - 0x1a4]
movzx ecx, byte [edx + eax*4 + 0x20]
mov dword [ebp - 0x1a8], ecx
cmp dword [ebp + ecx*4 - 0x18c], 0xffffffff
jne 0x51f600
mov eax, dword [ebp - 0x1ac]
mov dword [ebp + ecx*4 - 0x18c], eax
mov eax, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
inc eax
mov edi, dword [ebp - 0x198]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2 + 4]
mov edi, 0xffff
mov ecx, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1b4], ecx
cmp word [eax + ecx*2], di
mov edi, dword [ebp - 0x198]
jne 0x51f68f
mov eax, dword [ebp - 0x1a4]
movups xmm0, xmmword [edx + eax*4]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edx + eax*4 + 0x10]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [edx + eax*4 + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1a8]
mov al, byte [ebp + eax*4 - 0x18c]
mov byte [esi + 0x20], al
add esi, 0x24
cmp dword [0x6d07c4], 0
mov dword [ebp - 0x5c], esi
je 0x51f66f
mov dword [esi], 0x3f800000
add esi, dword [0x6d07c4]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x40]
mov cx, word [ebp - 0x58]
inc dword [ebp - 0x58]
movzx edx, word [eax + edi*2 + 4]
mov eax, dword [ebp - 0x60]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2 + 4]
jmp 0x51f695
mov eax, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x1ac]
movzx ecx, ax
mov eax, dword [ebp - 0x60]
mov cx, word [eax + ecx*2]
mov eax, dword [ebp - 0x50]
mov word [eax + edi*2 + 4], cx
jmp 0x51f6d8
mov ecx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.0051ecb0
mov edx, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x198]
mov dword [ebp - 0x1ac], edx
add edi, 3
mov dword [ebp - 0x198], edi
cmp edi, dword [ebp - 0x34]
jl 0x51f2a0
mov ecx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.0051ecb0
push 0x10
call fcn.00555564
mov esi, dword [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x1a4], eax
add esp, 4
mov edx, 0x24
mov dword [eax], 5
mov dword [eax + 4], esi
mov dword [eax + 0xc], 0
lea eax, [esi + esi*8]
shl eax, 2
mov dword [ebp - 0x1ac], eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
mov edi, eax
add esp, 4
mov dword [ebp - 0x1a8], edi
test edi, edi
je 0x51f7a2
mov ecx, esi
test ecx, ecx
je 0x51f7a4
lea eax, [edi + 0x18]
nop dword [eax]
mov dword [eax - 0x18], 0
lea eax, [eax + 0x24]
mov dword [eax - 0x38], 0
mov dword [eax - 0x34], 0
mov dword [eax - 0x30], 0
mov dword [eax - 0x2c], 0
mov dword [eax - 0x28], 0
mov dword [eax - 0x24], 0
mov dword [eax - 0x20], 0
sub ecx, 1
jne 0x51f760
jmp 0x51f7a4
xor edi, edi
mov eax, dword [ebp - 0x1a4]
mov ecx, edi
push esi
mov esi, dword [ebp - 0x54]
mov edx, esi
push 0x24
mov dword [eax + 0xc], edi
call fcn.00518f90
push dword [ebp - 0x1ac]
call fcn.00555564
mov edi, dword [ebp - 0x1a4]
add esp, 0xc
mov dword [edi + 8], eax
test esi, esi
je 0x51f7e7
push dword [ebp - 0x1ac]
push esi
push eax
call fcn.00554b70
add esp, 0xc
mov eax, dword [ebp - 0x1c8]
push 0x10
mov dword [eax + 0x28], edi
call fcn.00555564
mov ecx, dword [ebp - 0x34]
mov edi, eax
add esp, 4
lea eax, [ecx + ecx]
mov dword [edi], 1
push eax
mov dword [edi + 4], ecx
mov dword [edi + 0xc], 0
mov dword [ebp - 0x1a4], eax
call fcn.00555564
mov ecx, dword [ebp - 0x50]
add esp, 4
mov dword [edi + 8], eax
test ecx, ecx
je 0x51f83b
push dword [ebp - 0x1a4]
push ecx
push eax
call fcn.00554b70
add esp, 0xc
mov eax, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1ac]
add edx, dword [ebp - 0x1a4]
movss xmm1, dword [0x5b4600]
mov dword [eax + 0x34], edi
mov dword [ebp - 0x1ac], edx
jmp 0x51f862
xor edx, edx
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x51fcf9
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x51fcf9
cmp dword [ebp - 0x30], 0
movzx eax, word [edi]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x5c], esi
lea eax, [eax + eax*4]
mov dword [ebp - 0x19c], 0
movzx eax, byte [ecx + eax*8 + 0x23]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x198], 0
jle 0x51fb7e
nop word [eax + eax]
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x48]
movzx eax, word [edi + edx*2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x20], eax
movzx eax, word [edi + edx*2 + 2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x1c], eax
movzx eax, word [edi + edx*2 + 4]
mov edx, ecx
lea eax, [eax + eax*4]
lea edi, [edx + eax*8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x18], edi
movzx ecx, byte [edx + 0x23]
mov dword [ebp - 0x1a8], ecx
cmp eax, ecx
mov ecx, 0
je 0x51f940
mov ecx, dword [0x6d07c0]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x190], eax
jmp 0x51f9e1
movzx eax, byte [edx + 0x20]
cmp byte [ebp + eax - 0x9c], cl
jne 0x51f95d
mov byte [ebp + eax - 0x9c], 1
mov ecx, 1
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edx + 0x21]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51f977
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x20]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51f994
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edx + 0x21]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51f9ae
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edi + 0x20]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51f9c8
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edi + 0x21]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51f9e2
mov byte [ebp + eax - 0x9c], 1
mov esi, dword [ebp - 0x5c]
inc ecx
mov eax, dword [ebp - 0x1a0]
add eax, ecx
cmp eax, dword [0x6d07c0]
jg 0x51fb3a
xor ecx, ecx
mov dword [ebp - 0x1b0], ecx
nop
mov edx, dword [ebp + ecx*4 - 0x20]
mov dword [ebp - 0x1a8], edx
movzx eax, byte [edx + 0x20]
movzx edi, byte [edx + 0x21]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1b4], edi
cmp dword [ebp + eax*4 - 0x18c], 0xffffffff
jne 0x51fa44
mov esi, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1a0]
mov dword [ebp + esi*4 - 0x18c], eax
inc dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
cmp dword [ebp + edi*4 - 0x18c], 0xffffffff
jne 0x51fa64
mov eax, dword [ebp - 0x1a0]
mov dword [ebp + edi*4 - 0x18c], eax
inc dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x198]
mov edx, 0xffff
mov eax, dword [ebp - 0x3c]
add edi, ecx
movzx eax, word [eax + edi*2]
mov ecx, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1cc], ecx
cmp word [eax + ecx*2], dx
mov edx, dword [ebp - 0x1a8]
jne 0x51fb0b
movups xmm0, xmmword [edx]
mov eax, dword [ebp - 0x1a4]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edx + 0x10]
movzx eax, byte [ebp + eax*4 - 0x18c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [edx + 0x20]
movq qword [esi + 0x20], xmm0
mov byte [esi + 0x20], al
mov eax, dword [ebp - 0x1b4]
movzx eax, byte [ebp + eax*4 - 0x18c]
mov byte [esi + 0x21], al
add esi, 0x28
cmp dword [0x6d07c4], 0
mov dword [ebp - 0x5c], esi
je 0x51faed
movaps xmm0, xmm1
subss xmm0, dword [edx + 0x24]
movss dword [esi], xmm0
add esi, dword [0x6d07c4]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x3c]
mov cx, word [ebp - 0x58]
inc dword [ebp - 0x58]
movzx edx, word [eax + edi*2]
mov eax, dword [ebp - 0x60]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x3c]
movzx eax, word [eax + edi*2]
jmp 0x51fb11
mov eax, dword [ebp - 0x1cc]
movzx ecx, ax
mov eax, dword [ebp - 0x60]
mov cx, word [eax + ecx*2]
mov eax, dword [ebp - 0x50]
mov word [eax + edi*2], cx
mov ecx, dword [ebp - 0x1b0]
inc ecx
mov dword [ebp - 0x1b0], ecx
cmp ecx, 3
jl 0x51fa00
jmp 0x51fb51
mov ecx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1a0]
push 1
push eax
call fcn.0051ecb0
mov esi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x198]
add edx, 3
mov dword [ebp - 0x198], edx
cmp edx, dword [ebp - 0x30]
jge 0x51fb7e
mov eax, dword [ebp - 0x190]
movss xmm1, dword [0x5b4600]
mov dword [ebp - 0x1a4], eax
jmp 0x51f8d0
mov ecx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1a0]
push 1
push eax
call fcn.0051ecb0
push 0x10
call fcn.00555564
mov esi, dword [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x1b0], eax
add esp, 4
mov edx, 0x24
mov dword [eax], 6
mov dword [eax + 4], esi
mov dword [eax + 0xc], 0
lea eax, [esi + esi*4]
shl eax, 3
mov dword [ebp - 0x1a4], eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
mov edi, eax
add esp, 4
mov dword [ebp - 0x1a8], edi
test edi, edi
je 0x51fc33
mov ecx, esi
test ecx, ecx
je 0x51fc35
lea eax, [edi + 0x18]
mov dword [eax - 0x18], 0
lea eax, [eax + 0x24]
mov dword [eax - 0x38], 0
mov dword [eax - 0x34], 0
mov dword [eax - 0x30], 0
mov dword [eax - 0x2c], 0
mov dword [eax - 0x28], 0
mov dword [eax - 0x24], 0
mov dword [eax - 0x20], 0
sub ecx, 1
jne 0x51fbf1
jmp 0x51fc35
xor edi, edi
mov eax, dword [ebp - 0x1b0]
mov ecx, edi
push esi
mov esi, dword [ebp - 0x54]
mov edx, esi
push 0x28
mov dword [eax + 0xc], edi
call fcn.00518f90
push dword [ebp - 0x1a4]
call fcn.00555564
mov edi, dword [ebp - 0x1b0]
add esp, 0xc
mov dword [edi + 8], eax
test esi, esi
je 0x51fc78
push dword [ebp - 0x1a4]
push esi
push eax
call fcn.00554b70
add esp, 0xc
mov eax, dword [ebp - 0x1c8]
push 0x10
mov dword [eax + 0x2c], edi
mov eax, dword [ebp - 0x1ac]
add eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1ac], eax
call fcn.00555564
mov ecx, dword [ebp - 0x30]
mov edi, eax
add esp, 4
lea eax, [ecx + ecx]
mov dword [edi], 1
push eax
mov dword [edi + 4], ecx
mov dword [edi + 0xc], 0
mov dword [ebp - 0x1a4], eax
call fcn.00555564
mov ecx, dword [ebp - 0x50]
add esp, 4
mov dword [edi + 8], eax
test ecx, ecx
je 0x51fcde
push dword [ebp - 0x1a4]
push ecx
push eax
call fcn.00554b70
add esp, 0xc
mov ecx, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1ac]
add edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1ac], edx
mov dword [ecx + 0x38], edi
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x520235
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x520235
movzx eax, word [eax]
imul eax, eax, 0x2c
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
movzx eax, byte [eax + ecx + 0x23]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
jle 0x5200c1
nop
mov edx, dword [ebp - 0x198]
xor ecx, ecx
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + edx*2]
imul edi, eax, 0x2c
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + edx*2 + 2]
add edi, dword [ebp - 0x44]
imul eax, eax, 0x2c
mov dword [ebp - 0x20], edi
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + edx*2 + 4]
imul edx, eax, 0x2c
movzx eax, byte [edi + 0x23]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1b0]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], edx
cmp eax, dword [ebp - 0x1a4]
je 0x51fdd5
mov ecx, dword [0x6d07c0]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x190], eax
jmp 0x51fec7
movzx eax, byte [edi + 0x20]
cmp byte [ebp + eax - 0x9c], cl
jne 0x51fdf2
mov byte [ebp + eax - 0x9c], 1
mov ecx, 1
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edi + 0x21]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51fe0c
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edi + 0x22]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51fe26
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x1a8]
movzx edi, byte [eax + 0x20]
cmp byte [ebp + edi - 0x9c], 0
jne 0x51fe46
mov byte [ebp + edi - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx edi, byte [eax + 0x21]
cmp byte [ebp + edi - 0x9c], 0
jne 0x51fe60
mov byte [ebp + edi - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [eax + 0x22]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51fe7a
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edx + 0x20]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51fe94
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edx + 0x21]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51feae
mov byte [ebp + eax - 0x9c], 1
inc ecx
mov esi, dword [ebp - 0x5c]
movzx eax, byte [edx + 0x22]
cmp byte [ebp + eax - 0x9c], 0
jne 0x51fec8
mov byte [ebp + eax - 0x9c], 1
mov esi, dword [ebp - 0x5c]
inc ecx
mov eax, dword [ebp - 0x1a0]
add eax, ecx
cmp eax, dword [0x6d07c0]
jg 0x520085
xor ecx, ecx
mov dword [ebp - 0x1cc], ecx
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [ebp + ecx*4 - 0x20]
mov dword [ebp - 0x1a8], edx
movzx eax, byte [edx + 0x20]
movzx edi, byte [edx + 0x21]
mov dword [ebp - 0x1a4], eax
movzx eax, byte [edx + 0x22]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1b4], edi
cmp dword [ebp + eax*4 - 0x18c], 0xffffffff
jne 0x51ff44
mov esi, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1a0]
mov dword [ebp + esi*4 - 0x18c], eax
inc dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
cmp dword [ebp + edi*4 - 0x18c], 0xffffffff
jne 0x51ff64
mov eax, dword [ebp - 0x1a0]
mov dword [ebp + edi*4 - 0x18c], eax
inc dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x1b0]
cmp dword [ebp + edi*4 - 0x18c], 0xffffffff
jne 0x51ff8a
mov eax, dword [ebp - 0x1a0]
mov dword [ebp + edi*4 - 0x18c], eax
inc dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x198]
mov edx, 0xffff
mov eax, dword [ebp - 0x38]
add edi, ecx
movzx eax, word [eax + edi*2]
mov ecx, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1d4], ecx
cmp word [eax + ecx*2], dx
mov edx, dword [ebp - 0x1a8]
jne 0x520056
movups xmm0, xmmword [edx]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [edx + 0x20]
movq qword [esi + 0x20], xmm0
mov eax, dword [edx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x1a4]
movzx eax, byte [ebp + eax*4 - 0x18c]
mov byte [esi + 0x20], al
mov eax, dword [ebp - 0x1b4]
movzx eax, byte [ebp + eax*4 - 0x18c]
mov byte [esi + 0x21], al
mov eax, dword [ebp - 0x1b0]
movzx eax, byte [ebp + eax*4 - 0x18c]
mov byte [esi + 0x22], al
add esi, 0x2c
cmp dword [0x6d07c4], 0
mov dword [ebp - 0x5c], esi
je 0x520038
movss xmm0, dword [0x5b4600]
subss xmm0, dword [edx + 0x24]
subss xmm0, dword [edx + 0x28]
movss dword [esi], xmm0
add esi, dword [0x6d07c4]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x38]
mov cx, word [ebp - 0x58]
inc dword [ebp - 0x58]
movzx edx, word [eax + edi*2]
mov eax, dword [ebp - 0x60]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + edi*2]
jmp 0x52005c
mov eax, dword [ebp - 0x1d4]
movzx ecx, ax
mov eax, dword [ebp - 0x60]
mov cx, word [eax + ecx*2]
mov eax, dword [ebp - 0x50]
mov word [eax + edi*2], cx
mov ecx, dword [ebp - 0x1cc]
inc ecx
mov dword [ebp - 0x1cc], ecx
cmp ecx, 3
jl 0x51fef0
jmp 0x52009c
mov ecx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1a0]
push 2
push eax
call fcn.0051ecb0
mov esi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x198]
add edx, 3
mov dword [ebp - 0x198], edx
cmp edx, dword [ebp - 0x2c]
jge 0x5200c1
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x1b0], eax
jmp 0x51fd60
mov ecx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1a0]
push 2
push eax
call fcn.0051ecb0
push 0x10
call fcn.00555564
mov esi, dword [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x1b0], eax
add esp, 4
mov edx, 0x24
mov dword [eax], 7
mov dword [eax + 4], esi
mov dword [eax + 0xc], 0
imul eax, esi, 0x2c
mov dword [ebp - 0x1a4], eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005518c7
mov edi, eax
add esp, 4
mov dword [ebp - 0x1a8], edi
test edi, edi
je 0x520173
mov ecx, esi
test ecx, ecx
je 0x520175
lea eax, [edi + 0x18]
mov dword [eax - 0x18], 0
lea eax, [eax + 0x24]
mov dword [eax - 0x38], 0
mov dword [eax - 0x34], 0
mov dword [eax - 0x30], 0
mov dword [eax - 0x2c], 0
mov dword [eax - 0x28], 0
mov dword [eax - 0x24], 0
mov dword [eax - 0x20], 0
sub ecx, 1
jne 0x520131
jmp 0x520175
xor edi, edi
mov eax, dword [ebp - 0x1b0]
mov ecx, edi
push esi
mov esi, dword [ebp - 0x54]
mov edx, esi
push 0x2c
mov dword [eax + 0xc], edi
call fcn.00518f90
push dword [ebp - 0x1a4]
call fcn.00555564
mov edi, dword [ebp - 0x1b0]
add esp, 0xc
mov dword [edi + 8], eax
test esi, esi
je 0x5201b8
push dword [ebp - 0x1a4]
push esi
push eax
call fcn.00554b70
add esp, 0xc
mov eax, dword [ebp - 0x1c8]
push 0x10
mov dword [eax + 0x30], edi
mov eax, dword [ebp - 0x1ac]
add eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1ac], eax
call fcn.00555564
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add esp, 4
lea eax, [ecx + ecx]
mov dword [edi], 1
push eax
mov dword [edi + 4], ecx
mov dword [edi + 0xc], 0
mov dword [ebp - 0x1a4], eax
call fcn.00555564
mov ecx, dword [ebp - 0x50]
add esp, 4
mov dword [edi + 8], eax
test ecx, ecx
je 0x52021e
push dword [ebp - 0x1a4]
push ecx
push eax
call fcn.00554b70
add esp, 0xc
mov eax, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1ac]
add edx, dword [ebp - 0x1a4]
mov dword [eax + 0x3c], edi
jmp 0x52023b
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [ebp - 0x1d0]
push edx
push eax
push 0
call fcn.0050fba0
test esi, esi
je 0x520257
push esi
call fcn.005518c2
add esp, 4
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x520267
push ecx
call fcn.005518c2
add esp, 4
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x520277
push eax
call fcn.005518c2
add esp, 4
cmp byte [ebp - 0x28], 0
je 0x52028d
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x52028d
push eax
call fcn.005518c2
add esp, 4
cmp byte [ebp - 0x27], 0
je 0x5202a3
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x5202a3
push edi
call fcn.005518c2
add esp, 4
cmp byte [ebp - 0x26], 0
je 0x5202b9
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5202b9
push eax
call fcn.005518c2
add esp, 4
cmp byte [ebp - 0x1b6], 0
je 0x5202d5
mov eax, dword [ebp - 0x1c0]
test eax, eax
je 0x5202d5
push eax
call fcn.005550e4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00551170
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8