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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
lea eax, [ecx + 0x148]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], eax
push edi
mov edi, dword [ecx]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], edi
mov eax, dword [edi]
mov dword [esp + 0x74], eax
lea eax, [edx*8 + 0x5c]
add eax, edx
mov ebx, dword [edi + 8]
mov dword [esp + 0x58], ebx
lea esi, [ecx + eax*8]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x4c], eax
movzx eax, byte [esi + 0x24]
mov dword [esp + 0x40], esi
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x54]
shl ecx, 4
mov eax, dword [eax + 4]
add eax, 8
add eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [eax + 0x30]
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x2c], eax
xor eax, eax
test edx, edx
jle 0x5163d8
add ecx, 0x48
nop word [eax + eax]
mov edi, dword [esp + 0x2c]
cmp dword [ecx], edi
mov edi, dword [esp + 0x60]
je 0x516605
inc eax
add ecx, 4
cmp eax, edx
jl 0x5163c0
xorps xmm0, xmm0
movlpd qword [esp + 0x80], xmm0
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
not ecx
not edx
and ecx, dword [ebp + 8]
and edx, dword [ebp + 0xc]
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x44], edx
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x3c]
call fcn.00725780
and eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
test byte [eax + 0x24], 0x40
je 0x516438
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], 1
test byte [eax + 0x22], 0x20
je 0x516440
mov dword [esp + 0x34], 0
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x14], edx
mov ecx, dword [edx + 0x6c]
mov dword [esp + 0x10], ecx
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x516481
mov edx, dword [edx + 0x70]
lea eax, [ecx*8 + 4]
mov ecx, dword [esp + 0x14]
push 0
push eax
mov ecx, dword [ecx]
call fcn.004b4b50
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x70], eax
mov eax, dword [edx + 0x70]
test eax, eax
je 0x51648f
mov dword [eax + ecx*4], 0xffffffff
not ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x20], ecx
mov edx, dword [ecx + 0x6c]
mov dword [esp + 0x88], edx
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea eax, [edx - 1]
test edx, eax
jne 0x5164de
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x70]
mov ecx, dword [ecx]
push 0
push eax
call fcn.004b4b50
mov ecx, dword [esp + 0x28]
add esp, 8
mov edx, dword [esp + 0x88]
mov dword [ecx + 0x70], eax
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x5164ec
mov dword [eax + edx*4], 0xffffffff
cmp byte [esi + 0x24], 0
not edx
mov dword [esp + 0x88], edx
mov dword [esi + 0x18], edx
jbe 0x516567
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 8
je 0x516567
mov eax, dword [edi + 0x48]
inc eax
mov dword [edi + 0x48], eax
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x516533
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x516567
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x5c]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x28]
mov dword [esp + 0x80], eax
test al, 4
je 0x516664
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x5165a9
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5165dd
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
mov word [eax + ecx*4], 0x14
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x54], ecx
jg 0x516623
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x51661f
mov eax, 1
mov byte [esi + 0x25], 0x10
jmp 0x5178e0
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x5163f2
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov word [eax + ecx*4], 0x16
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 eax, dword [esp + 0x3c]
mov byte [esi + 0x25], 0x10
jmp 0x5178e0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x24]
test eax, 0x400
je 0x5168df
movzx eax, word [edx + 0x28]
inc dword [edi + 0x64]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x10], eax
add eax, 2
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x24], eax
cmp ebx, ecx
jg 0x5166aa
add eax, ebx
sub ecx, ebx
mov dword [edi + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x3c], eax
jmp 0x5166b9
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
add eax, ebx
mov dword [esp + 0x24], ecx
mov dword [edi + 0x48], eax
cmp dword [esp + 0x10], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], eax
jle 0x51671f
xor ebx, ebx
nop dword [eax]
mov eax, dword [edx + 0x30]
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x51670c
lea eax, [ecx + 2]
mov ecx, edi
add eax, ebx
test byte [edx + 0x12], 1
push eax
je 0x5166ff
push dword [esp + 0x3c]
push ebx
push esi
call fcn.005157e0
mov eax, dword [esi + 0x10]
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x51670c
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004e8c00
add esp, 4
mov edx, dword [esp + 0x4c]
inc ebx
mov ecx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x10]
jl 0x5166d0
mov ebx, dword [esp + 0x58]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x516744
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x516778
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x19
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 eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x516796
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5167ca
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0x20]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov edx, 0xfffffff5
mov ecx, 0xfffffffe
cmp byte [eax + 0x1c], 0
mov eax, dword [eax + 0x20]
mov dword [esp + 0x34], eax
cmovne ecx, edx
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], edx
cmp dword [eax + 0x54], edx
jg 0x51680f
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x51680b
mov edx, 1
jmp 0x516847
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
lea ecx, [edx + edx*4]
inc dword [ebx + 0x20]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x40]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x5c]
mov ecx, ebx
push dword [esp + 0x38]
call fcn.004d23c0
mov eax, dword [esp + 0x54]
add esp, 8
cmp dword [esp + 0x10], 0
mov byte [eax + 0x1c], 0
jle 0x51689f
xor edi, edi
mov ebx, eax
nop dword [eax]
cmp edi, 0x10
jge 0x516897
mov ax, word [ebx + 0x1e]
mov cx, di
shr ax, cl
test al, 1
je 0x516890
mov edx, dword [ebx + 0x30]
mov ecx, esi
mov edx, dword [edx + edi*4]
call fcn.005156d0
inc edi
cmp edi, dword [esp + 0x10]
jl 0x516870
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x2c]
mov ecx, edi
push dword [esp + 0x18]
mov byte [esi + 0x25], 0x95
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x2c], eax
mov esi, dword [esp + 0x28]
mov edx, esi
call fcn.004e7560
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, dword [edi + 0x38]
jle 0x5168d3
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], esi
mov ecx, edi
call fcn.004e75c0
jmp 0x5178e3
test al, 5
setne cl
bt eax, 8
setb al
test al, cl
je 0x516984
mov eax, dword [edx + 0x30]
mov ecx, edi
mov edx, dword [eax]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push 0
push esi
call fcn.005157e0
mov edx, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x30], eax
cmp eax, edx
je 0x51692b
mov ecx, edi
call fcn.004e9f00
mov eax, dword [esp + 0x30]
mov esi, dword [esi + 0x10]
mov edx, 0x26
push esi
push eax
mov ecx, ebx
call fcn.004d1cd0
push dword [esp + 0x38]
mov edx, 0x46
mov ecx, ebx
push esi
push dword [esp + 0x3c]
call fcn.004d1ba0
mov esi, dword [esp + 0x44]
add esp, 0x14
mov edx, esi
mov ecx, edi
push 1
call fcn.004e7560
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.004e7410
mov eax, dword [esp + 0x48]
add esp, 8
mov byte [eax + 0x25], 0x9a
jmp 0x5178e3
mov ecx, dword [edx + 0x24]
mov eax, ecx
and eax, 0x102
cmp eax, 0x102
jne 0x516b75
xor eax, eax
mov dword [esp + 0x24], 0x9a
mov dword [esp + 0x3c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
test cl, 0x20
je 0x5169d1
mov eax, dword [edx + 0x30]
mov dword [esp + 0x14], 1
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test cl, 0x10
je 0x5169e6
mov eax, dword [edx + 0x30]
mov ecx, dword [esp + 0x14]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x1c], ecx
jmp 0x5169e8
xor ecx, ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x516a02
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
jmp 0x516a06
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x516a72
mov esi, dword [ecx]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0x403e3f41
mov edx, dword [esi + 0x10]
call fcn.004e8a60
mov edx, dword [esp + 0x14]
add esp, 4
mov edi, eax
mov ecx, ebx
movzx eax, byte [esi]
push edi
push edx
push dword [esp + 0x34]
movzx edx, byte [esp + eax - 0x1c]
call fcn.004d1ba0
add esp, 0xc
mov edx, edi
mov edi, dword [esp + 0x60]
mov ecx, edi
push 1
call fcn.004e7560
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, edi
call fcn.004e9f00
mov esi, dword [esp + 0x40]
mov ecx, esi
mov edx, dword [esp + 0x18]
call fcn.005156d0
jmp 0x516a94
mov edx, dword [esp + 0x10]
test eax, eax
push edx
push dword [esp + 0x30]
mov ecx, 0x69
mov edx, 0x6c
cmovne edx, ecx
mov ecx, ebx
call fcn.004d1cd0
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x516af9
mov esi, dword [eax]
mov ecx, edi
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
push eax
mov edx, dword [esi + 0x10]
mov dword [esp + 0x40], eax
call fcn.004e8c00
mov al, byte [esi]
add esp, 4
cmp al, 0x52
je 0x516ad4
cmp al, 0x50
je 0x516ad4
mov ecx, dword [esp + 0x38]
xor eax, eax
test ecx, ecx
setne al
lea eax, [eax*2 + 0x50]
jmp 0x516ae6
mov ecx, dword [esp + 0x38]
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax*2 + 0x51]
mov esi, dword [esp + 0x40]
mov ecx, esi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
call fcn.005156d0
cmp dword [esp + 0x38], 0
mov ecx, dword [ebx + 0x20]
sete al
mov dword [esi + 0x2c], ecx
add al, 8
cmp dword [esp + 0x24], 0x9a
mov byte [esi + 0x25], al
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
je 0x5178e3
inc dword [edi + 0x48]
mov edx, 0x67
mov esi, dword [edi + 0x48]
mov ecx, ebx
push esi
push eax
call fcn.004d1cd0
mov edx, dword [esp + 0x34]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.004e7410
mov edx, dword [esp + 0x34]
mov ecx, ebx
push esi
push dword [esp + 0x24]
push dword [esp + 0x54]
call fcn.004d1ba0
mov ecx, dword [ebx + 4]
add esp, 0x1c
test ecx, ecx
je 0x5178e3
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x53
jmp 0x5178e3
test ecx, 0x200
je 0x5170f9
mov ecx, dword [esi + 8]
movzx eax, word [edx + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x18], 0
test byte [ecx + 0x22], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x97], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x53], 0
mov dword [esp + 0x30], eax
je 0x516be8
cmp byte [ecx + 0x24], 0
jle 0x516be8
mov ecx, dword [esp + 0x1c]
cmp word [eax + 0x2e], cx
jbe 0x516be8
mov byte [esp + 0x48], 1
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], ecx
test al, 0x20
je 0x516c1a
mov eax, dword [edx + 0x30]
mov dword [esp + 0x28], 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x24]
test al, 0x10
je 0x516c70
cmp dword [esp + 0x18], 0
mov eax, dword [edx + 0x30]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], 1
mov eax, dword [eax + edx*4]
mov dword [esp + 0x10], eax
jne 0x516c70
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
movsx eax, word [eax + ecx*2]
test eax, eax
js 0x516c70
lea ecx, [eax + eax*2]
mov dword [esp + 0x20], 1
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x48]
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0x14], 0
cmove edx, dword [esp + 0x20]
mov dword [esp + 0x48], edx
lea eax, [esp + 0x68]
mov edx, esi
push eax
push dword [esp + 0x2c]
mov ecx, edi
push dword [esp + 0x40]
call fcn.00515a20
mov edx, dword [esp + 0x50]
add esp, 0xc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x516ca3
mov al, byte [edx + eax]
mov byte [esp + 0x97], al
mov eax, dword [esi + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + 0x2e]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
cmp cx, word [esp + 0x14]
jae 0x516d03
mov eax, dword [eax + 0x1c]
xor ecx, ecx
cmp byte [edx + eax], cl
mov eax, dword [esp + 0x38]
sete cl
cmp eax, ecx
je 0x516ce3
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x516d09
cmp word [esp + 0x14], cx
jne 0x516d09
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov cl, byte [esp + 0x48]
mov byte [esp + 0x53], cl
xor cl, cl
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ecx
jmp 0x516d11
mov eax, dword [esp + 0x38]
jmp 0x516cd8
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x516d23
test byte [eax + 0x12], 0x28
mov dword [esp + 0x3c], 0
je 0x516d2b
mov dword [esp + 0x3c], 1
cmp dword [esp + 0x10], 0
je 0x516d48
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test byte [esi + 0x12], 0x28
mov esi, dword [esp + 0x40]
je 0x516d50
mov dword [esp + 0x14], 1
test eax, eax
jne 0x516e9b
cmp word [esp + 0x1c], ax
ja 0x516e9b
mov dword [esp + 0x7c], eax
mov dword [esp + 0x1c], edx
test cl, cl
je 0x516d9f
mov eax, dword [esp + 0x28]
mov ecx, ebx
add eax, edx
mov edx, 0x1c
push eax
push 0
call fcn.004d1cd0
add esp, 8
mov dword [esp + 0x3c], 0
mov dword [esp + 0x7c], 1
mov ecx, dword [esp + 0x48]
inc dword [esp + 0x1c]
push dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
movzx eax, cl
mov ecx, dword [esp + 0x20]
sub ecx, eax
push ecx
mov ecx, edi
call fcn.00515720
mov ecx, dword [esp + 0x44]
push dword [esp + 0x24]
mov eax, dword [esp + 0x88]
push dword [esp + 0x34]
push dword [esp + 0x7c]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x4c]
push dword [esp + 0x38]
movzx edx, byte [ecx + eax*2 + 0x789cfc]
mov ecx, ebx
call fcn.004d1e60
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
je 0x516f3e
mov eax, dword [eax]
mov ecx, edi
push 1
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x2c]
mov edx, eax
mov dword [esp + 0x40], eax
call fcn.004e7560
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, edi
push dword [esp + 0x3c]
call fcn.004e8c00
mov ecx, dword [esp + 0x20]
add esp, 4
call fcn.004e5f50
test eax, eax
je 0x516e51
push dword [esp + 0x6c]
mov edx, 0x4c
mov ecx, ebx
push dword [esp + 0x40]
call fcn.004d1cd0
add esp, 8
mov dl, byte [esp + 0x97]
mov ecx, dword [esp + 0x1c]
call fcn.004e4300
cmp al, 0x41
je 0x516f67
mov dl, byte [esp + 0x97]
mov ecx, dword [esp + 0x1c]
call fcn.004e6000
test eax, eax
jne 0x516f67
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x97]
push eax
push 1
mov ecx, edi
call fcn.00515720
jmp 0x516f64
mov dword [esp + 0x7c], 1
mov dword [esp + 0x1c], edx
test eax, eax
je 0x516d6b
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
add ecx, edx
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x10]
mov edx, eax
push ecx
mov ecx, edi
mov dword [esp + 0x7c], eax
call fcn.004e8c00
mov ecx, dword [esp + 0x7c]
add esp, 4
call fcn.004e5f50
test eax, eax
je 0x516ef3
push dword [esp + 0x6c]
mov edx, 0x4c
mov ecx, ebx
push dword [esp + 0x24]
call fcn.004d1cd0
add esp, 8
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x516d97
mov eax, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x70], eax
mov dl, byte [eax]
call fcn.004e4300
cmp al, 0x41
mov eax, dword [esp + 0x70]
jne 0x516f1f
mov byte [eax], 0x41
mov dl, byte [eax]
mov ecx, dword [esp + 0x78]
call fcn.004e6000
test eax, eax
je 0x516d97
mov eax, dword [esp + 0x70]
mov byte [eax], 0x41
jmp 0x516d97
cmp byte [esp + 0x53], 0
je 0x516f6b
mov eax, dword [esp + 0x44]
mov edx, 0x1c
add eax, dword [esp + 0x28]
mov ecx, ebx
push eax
push 0
call fcn.004d1cd0
mov dword [esp + 0x1c], 0
add esp, 8
inc dword [esp + 0x44]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
call fcn.004b4750
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x516fad
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
push dword [esp + 0x74]
push dword [esp + 0x30]
movzx edx, byte [ecx + eax*2 + str.trqs]
mov ecx, ebx
call fcn.004d1e60
add esp, 0x10
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.005156d0
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.005156d0
cmp dword [esp + 0x34], 0
jne 0x5170b7
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
test byte [ecx + 0x2c], 0x20
jne 0x51701d
inc dword [edi + 0x48]
mov edx, 0x70
mov esi, dword [edi + 0x48]
mov ecx, ebx
push esi
push dword [esp + 0x28]
call fcn.004d1cd0
mov edx, dword [esp + 0x34]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.004e7410
push esi
push dword [esp + 0x40]
mov edx, 0x42
mov ecx, ebx
call fcn.004d1cd0
mov esi, dword [esp + 0x58]
add esp, 0x18
jmp 0x5170b7
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x2c], edx
je 0x5170bb
call fcn.004eec20
mov ecx, edi
mov dword [esp + 0x14], eax
movzx edx, word [eax + 0x2e]
call fcn.004e9f40
mov ecx, eax
xor edx, edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
cmp dx, word [eax + 0x2e]
jae 0x517097
xor edi, edi
mov esi, eax
lea eax, [edi + ecx]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esi + 4]
mov dx, word [eax + edi*2]
call fcn.004eec40
cwde
mov edx, 0x2f
push eax
push dword [esp + 0x2c]
mov ecx, ebx
call fcn.004d1ba0
movzx eax, word [esi + 0x2e]
inc edi
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp edi, eax
jl 0x517055
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x2e]
mov edx, 0x44
push eax
push ecx
push dword [esp + 0x90]
mov ecx, ebx
push dword [esp + 0x38]
call fcn.004d1e60
add esp, 0x10
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
test dword [ecx + 0x24], 0x1000
je 0x5170ce
mov byte [esi + 0x25], 0x9a
jmp 0x5170db
cmp dword [esp + 0x38], 0
sete al
add al, 8
mov byte [esi + 0x25], al
mov dword [esi + 0x28], edx
mov al, byte [ecx + 0x26]
and al, 1
mov byte [esi + 0x26], al
test byte [ecx + 0x24], 0xf
jne 0x5178e3
mov byte [esi + 0x27], 1
jmp 0x5178e3
test ecx, 0x2000
je 0x5178a1
mov eax, dword [edi + 0x44]
mov ecx, ebx
inc dword [edi + 0x48]
mov dword [esp + 0x38], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x48], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x6c], 0
call fcn.004d1ed0
mov dword [esp + 0x5c], eax
xor edx, edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x78], 0
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x7c]
mov byte [esi + 0x25], 0x12
mov dword [esi + 0x28], eax
mov al, byte [edx + 0x29]
cmp al, 1
jbe 0x51729a
movzx eax, al
sub eax, dword [esp + 0x3c]
dec eax
push 0
mov dword [esp + 0x38], eax
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, 0x58
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.004b49d0
mov ecx, eax
add esp, 8
mov dword [esp + 0x44], ecx
test ecx, ecx
jne 0x5171cd
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x34]
mov al, dl
inc al
movzx eax, al
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
movups xmm0, xmmword [eax]
movups xmmword [ecx + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x18], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x28], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x38], xmm0
movups xmm0, xmmword [eax + 0x40]
mov eax, dword [esp + 0x54]
movups xmmword [ecx + 0x48], xmm0
mov eax, dword [eax + 4]
cmp edx, 1
jl 0x517268
add ecx, 0x58
lea ebx, [esi + 0x6c]
mov edi, eax
nop dword [eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 0x48]
lea ecx, [ecx + 0x50]
lea eax, [eax + eax*4]
add eax, eax
movups xmm0, xmmword [edi + eax*8 + 8]
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [edi + eax*8 + 0x18]
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [edi + eax*8 + 0x28]
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [edi + eax*8 + 0x38]
movups xmmword [ecx - 0x20], xmm0
movups xmm0, xmmword [edi + eax*8 + 0x48]
movups xmmword [ecx - 0x10], xmm0
sub edx, 1
jne 0x517220
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
test byte [eax + 0x22], 8
jne 0x5172e3
test byte [ecx + 0x2c], 0x20
jne 0x5172a3
inc dword [edi + 0x48]
mov edx, 0x1c
mov eax, dword [edi + 0x48]
mov ecx, ebx
push eax
push 0
mov dword [esp + 0x20], eax
call fcn.004d1cd0
add esp, 8
jmp 0x5172d9
mov eax, dword [edx + 4]
mov dword [esp + 0x44], eax
jmp 0x51726c
call fcn.004eec20
mov esi, eax
mov edx, 0x39
mov eax, dword [edi + 0x44]
mov dword [esp + 0x18], eax
lea ecx, [eax + 1]
mov dword [edi + 0x44], ecx
movzx ecx, word [esi + 0x2e]
push ecx
push eax
mov ecx, ebx
call fcn.004d1cd0
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.004d24b0
mov esi, dword [esp + 0x40]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x6c], eax
push dword [esp + 0x7c]
mov edx, 0x19
mov ecx, ebx
push 0
call fcn.004d1cd0
mov dword [esp + 0x88], eax
add esp, 8
mov eax, dword [esp + 0x64]
xor edx, edx
mov ecx, dword [eax + 0xc]
cmp ecx, 1
jle 0x517434
mov dword [esp + 0x34], edx
test ecx, ecx
jle 0x517432
mov esi, dword [esp + 0x74]
xor ecx, ecx
mov dword [esp + 0x14], ecx
xor edi, edi
nop dword [eax]
mov eax, dword [eax + 0x14]
add eax, ecx
mov ebx, dword [eax]
mov dword [esp + 0x70], ebx
cmp eax, dword [esp + 0x20]
je 0x51737e
test byte [ebx + 4], 1
jne 0x51737e
test byte [eax + 0x14], 2
jne 0x51737e
mov ebx, 0xfff
test word [eax + 0x12], bx
je 0x51737e
mov edx, dword [esp + 0x70]
mov ecx, esi
push 0
push 0
call fcn.004e4f40
push eax
mov edx, edi
mov ecx, esi
call fcn.004e4a00
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x64]
inc edx
add ecx, 0x30
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ecx
cmp edx, dword [eax + 0xc]
jl 0x517330
mov ebx, dword [esp + 0x58]
mov edx, edi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x60]
test edx, edx
je 0x517434
mov ecx, dword [edi]
mov edx, 0x48
push 1
push 0
call fcn.004e46f0
mov ecx, eax
add esp, 8
mov eax, dword [edi]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x5173f2
xor edx, edx
mov ecx, eax
call fcn.004e4e10
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
call fcn.004e4e10
mov eax, dword [esp + 0x14]
mov edx, eax
mov dword [esp + 0x10], edx
jmp 0x517434
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [edx + 4]
and eax, 0x100
or dword [ecx + 4], eax
call fcn.004e45d0
mov eax, dword [edi]
mov ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], ecx
jle 0x51742a
push ecx
push str.Expression_tree_is_too_large__maximum_depth__d_
push edi
call fcn.004b73f0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov edx, eax
mov dword [esp + 0x10], edx
jmp 0x517434
xor edx, edx
mov ecx, dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x70], 0x70
mov dword [esp + 0x4c], eax
cmp dword [ecx + 0xc], eax
jle 0x51775b
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [ecx + 0x14]
cmp dword [eax + 8], ebx
mov ebx, dword [esp + 0x58]
je 0x51747c
mov ebx, 0x200
test word [eax + 0x12], bx
mov ebx, dword [esp + 0x58]
je 0x517745
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp + 0x14], ecx
test edx, edx
je 0x517493
test byte [eax + 4], 1
jne 0x517493
mov dword [edx + 0xc], eax
mov eax, edx
push dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov ecx, edi
push dword [esp + 0x74]
push 0
push 0
push eax
call fcn.0051adf0
add esp, 0x14
mov dword [esp + 0x90], eax
test eax, eax
je 0x517741
movzx ecx, byte [esi + 0x24]
mov edx, dword [esp + 0x44]
push 0
push ecx
push dword [esp + 0x44]
lea ecx, [eax + 0x2e0]
push ecx
mov ecx, edi
call fcn.00516080
mov eax, dword [esp + 0x64]
add esp, 0x10
test byte [eax + 0x22], 8
jne 0x517656
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, 0xffffffff
cmove ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
test byte [eax + 0x2c], 0x20
jne 0x517547
push 0
push dword [esp + 0x70]
mov edx, eax
mov ecx, edi
push dword [esp + 0x34]
push 0xffffffffffffffff
call fcn.004e77b0
push dword [esp + 0x40]
mov edx, 0x82
mov ecx, ebx
push eax
push 0
push dword [esp + 0x34]
call fcn.004d1e60
add esp, 0x20
mov dword [esp + 0x14], eax
jmp 0x517656
mov ecx, eax
call fcn.004eec20
mov ecx, edi
mov dword [esp + 0x8c], eax
movzx edx, word [eax + 0x2e]
mov dword [esp + 0x28], edx
call fcn.004e9f40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 0
test edx, edx
je 0x5175bb
mov esi, dword [esp + 0x34]
mov ebx, edx
nop word [eax + eax]
mov edx, dword [esp + 0x24]
add eax, esi
push 0
push eax
mov eax, dword [esp + 0x94]
mov ecx, edi
push dword [esp + 0x34]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
call fcn.004e77b0
mov eax, dword [esp + 0x2c]
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x517580
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x30], 0
je 0x5175e4
push edx
push eax
push 0
push dword [esp + 0x24]
mov edx, 0x45
mov ecx, ebx
call fcn.004d1e60
add esp, 0x10
mov dword [esp + 0x14], eax
cmp dword [esp + 0x30], 0
jl 0x517631
push dword [esp + 0x6c]
mov edx, 0x31
mov ecx, ebx
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.004d1ba0
add esp, 0xc
mov edx, 0x6e
mov ecx, ebx
push 0
push dword [esp + 0x70]
push dword [esp + 0x20]
call fcn.004d1ba0
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x517631
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x517631
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x10
push dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, edi
call fcn.004e7560
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [edi + 0x38]
jle 0x517656
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x8c], ecx
cmp dword [eax + 0x54], ecx
jg 0x51767a
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5176ae
mov ecx, dword [esp + 0x8c]
mov eax, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
mov word [eax + ecx*4], 0x11
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 eax, dword [esp + 0x14]
test eax, eax
je 0x5176d1
mov edx, dword [ebx + 0x20]
cmp edx, eax
jbe 0x5176c7
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
mov edx, dword [esp + 0x90]
mov ecx, 1
mov eax, dword [esp + 0x78]
cmp byte [edx + 0x27], 0
cmovne eax, ecx
mov ecx, dword [edx + 0x318]
mov dword [esp + 0x78], eax
test dword [ecx + 0x24], 0x200
je 0x517732
cmp dword [esp + 0x4c], 0
je 0x51770b
mov eax, dword [esp + 0x48]
cmp dword [ecx + 0x1c], eax
jne 0x517732
mov eax, dword [esp + 0x24]
test byte [eax + 0x2c], 0x20
je 0x517721
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x34]
and al, 3
cmp al, 2
je 0x517732
mov eax, dword [ecx + 0x1c]
or dword [esp + 0x70], 0x1000
mov dword [esp + 0x48], eax
jmp 0x51773a
mov dword [esp + 0x48], 0
mov ecx, edx
call fcn.0051b820
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [ecx + 0xc]
jl 0x517453
mov eax, dword [esp + 0x48]
mov dword [esi + 0x30], eax
test eax, eax
je 0x51776d
mov eax, dword [esp + 0x38]
mov dword [esi + 8], eax
mov edx, dword [esp + 0x10]
test edx, edx
je 0x517785
mov ecx, dword [esp + 0x74]
mov dword [edx + 0xc], 0
call fcn.004e4e10
mov edx, dword [ebx + 0x20]
mov eax, dword [esp + 0x80]
cmp edx, eax
jbe 0x51779d
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 4]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x80], ecx
cmp dword [eax + 0x54], ecx
jg 0x5177cb
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x517802
mov ecx, dword [esp + 0x80]
mov eax, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x80], eax
js 0x51782d
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x51782d
mov edi, dword [esp + 0x80]
mov eax, dword [ebx + 0x20]
mov dword [ecx + edi*4], eax
mov edi, dword [esp + 0x60]
mov eax, dword [ebx + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x54]
cmp byte [eax + 0x29], 1
jbe 0x51788d
mov edx, dword [esp + 0x44]
test edx, edx
je 0x51788d
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x517884
cmp dword [ecx + 0x208], 0
je 0x51785e
call fcn.004b4710
jmp 0x51788d
cmp edx, dword [ecx + 0x114]
jb 0x517884
cmp edx, dword [ecx + 0x118]
jae 0x517884
mov eax, dword [ecx + 0x110]
mov dword [edx], eax
dec dword [ecx + 0xfc]
mov dword [ecx + 0x110], edx
jmp 0x51788d
push edx
call fcn.004b4670
add esp, 4
cmp dword [esp + 0x78], 0
jne 0x5178e3
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.005156d0
jmp 0x5178e3
test byte [esp + 0x80], 8
je 0x5178b1
mov byte [esi + 0x25], 0x9a
jmp 0x5178e3
mov ecx, dword [esp + 0x38]
push dword [esp + 0x10]
mov al, byte [ecx + 0x78b354]
movzx edx, byte [ecx + 0x78cdb4]
mov ecx, ebx
mov byte [esi + 0x25], al
mov eax, dword [esp + 0x30]
push eax
mov dword [esi + 0x28], eax
call fcn.004d1cd0
add esp, 8
mov byte [esi + 0x27], 1
inc eax
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x20], edx
test edx, edx
jle 0x51795e
mov ebx, dword [esp + 0x40]
nop dword [eax]
test byte [esi + 0x14], 6
jne 0x51794a
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x40]
and eax, dword [ebx + 0x44]
or ecx, eax
je 0x517920
mov eax, dword [esp + 0x54]
mov byte [eax + 0x27], 1
jmp 0x51794a
cmp dword [ebx], 0
mov eax, dword [esi]
je 0x51792d
test byte [eax + 4], 1
je 0x51794a
push 0x10
push dword [esp + 0x8c]
mov edx, eax
mov ecx, edi
call fcn.004e9460
mov edx, dword [esp + 0x28]
add esp, 8
or byte [esi + 0x14], 4
dec edx
add esi, 0x30
mov dword [esp + 0x20], edx
test edx, edx
jg 0x517900
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
test edx, edx
jle 0x517aea
mov ebx, dword [esp + 0x60]
mov eax, 0x402
nop dword [eax]
test byte [ecx + 0x14], 6
jne 0x517ad2
cmp word [ecx + 0x12], ax
jne 0x517ad2
mov esi, dword [esp + 0x2c]
cmp dword [ecx + 8], esi
jne 0x517ad2
mov eax, dword [esp + 0x40]
cmp dword [eax], 0
jne 0x517acd
mov eax, dword [ecx]
xor edi, edi
mov edx, dword [esp + 0x64]
push edi
push 3
push dword [ecx + 0xc]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x8c], eax
push esi
call fcn.00513650
mov esi, eax
add esp, 0x10
test esi, esi
je 0x517a14
nop dword [eax]
mov edx, dword [esi + 0x20]
mov ecx, edx
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 8]
and eax, dword [ebp + 0xc]
or ecx, eax
jne 0x517a02
or edx, dword [esi + 0x24]
jne 0x5179fd
test byte [esi + 0x12], 2
jne 0x517a16
test edi, edi
cmove edi, esi
lea ecx, [esp + 0x98]
call fcn.005133f0
mov esi, eax
test esi, esi
jne 0x5179e0
mov esi, edi
test esi, esi
je 0x517ac5
test byte [esi + 0x14], 4
jne 0x517ac5
mov ecx, dword [esp + 0x74]
push 0
push 0x30
call fcn.004b49d0
mov edi, eax
add esp, 8
test edi, edi
je 0x517ac5
mov ecx, dword [esi]
mov edx, edi
mov eax, dword [esp + 0x80]
push 0x10
push dword [esp + 0x8c]
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
mov ecx, ebx
movups xmmword [edi + 0x20], xmm0
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
call fcn.004e9460
mov ecx, dword [esp + 0x7c]
add esp, 8
test ecx, ecx
je 0x517abc
cmp dword [ecx + 0x208], 0
je 0x517a96
mov edx, edi
call fcn.004b4710
jmp 0x517ac5
cmp edi, dword [ecx + 0x114]
jb 0x517abc
cmp edi, dword [ecx + 0x118]
jae 0x517abc
mov eax, dword [ecx + 0x110]
mov dword [edi], eax
dec dword [ecx + 0xfc]
mov dword [ecx + 0x110], edi
jmp 0x517ac5
push edi
call fcn.004b4670
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, 0x402
dec edx
add ecx, 0x30
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
test edx, edx
jg 0x517980
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov dword [esp + 0x80], eax
test eax, eax
je 0x517bb7
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x517b1b
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x517b52
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x80]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x60]
mov ecx, ebx
call fcn.004e7860
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x64]
mov esi, dword [edx + 0x14]
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [eax + 0xc], edx
jle 0x517bb7
test byte [esi + 0x14], 6
jne 0x517baa
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x40]
and eax, dword [edi + 0x44]
or ecx, eax
jne 0x517ba6
mov edx, dword [esi]
mov ecx, ebx
push 0x10
push dword [esp + 0x8c]
call fcn.004e9460
mov edx, dword [esp + 0x28]
add esp, 8
or byte [esi + 0x14], 4
mov eax, dword [esp + 0x64]
inc edx
add esi, 0x30
mov dword [esp + 0x20], edx
cmp edx, dword [eax + 0xc]
jl 0x517b73
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret