Function at 0x50fa70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ade8
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5f88c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], eax
call fcn.0051abd0
push 1
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x60], eax
call fcn.004ffdd0
cmp dword [edi + 0x14], 7
mov ecx, edi
mov dword [ebp - 4], 0
jbe 0x50fad1
mov ecx, dword [edi]
push dword [edi + 0x10]
lea eax, [ebp - 0x240]
push ecx
push eax
call fcn.00504f00
mov esi, dword [ebp + 0xc]
add esp, 0xc
push esi
push 0x5bbb34
push eax
call fcn.00477e30
add esp, 8
mov ecx, eax
call fcn.00505c40
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x240]
call fcn.004789a0
cmp dword [eax + 0x14], 7
jbe 0x50fb14
mov eax, dword [eax]
push eax
call fcn.0056e316
add esp, 4
test eax, eax
je 0x50fb26
call fcn.0055fbef
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x50fb60
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50fb56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5100bb
push ecx
push edx
call fcn.0054b2c7
add esp, 8
push 1
lea ecx, [ebp - 0x1a8]
call fcn.004ffdd0
push 1
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
call fcn.004ffdd0
dec esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], esi
cmp esi, 1
jl 0x51007a
nop
lea ecx, [ebp - 0x1a4]
call fcn.00502970
cmp dword [0x5f85c4], 7
mov eax, 0x5f85b0
mov edx, dword [ebp - 0x168]
cmova eax, dword [0x5f85b0]
and edx, 0xffffffdf
mov esi, dword [0x5f85c0]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], edx
cmp esi, 0x7fffffff
ja 0x5100b6
test esi, esi
je 0x50fc94
mov eax, edx
and eax, 6
cmp al, 6
je 0x50fc94
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], esi
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00453070
add esi, esi
mov edi, eax
push esi
push dword [ebp - 0x54]
push edi
call fcn.0054d470
mov edx, dword [ebp - 0x48]
add esi, edi
mov eax, edx
mov dword [ebp - 0x16c], esi
add esp, 0x14
and eax, 4
mov dword [ebp - 0x48], eax
jne 0x50fc41
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], edi
mov eax, dword [ebp - 0x188]
mov dword [eax], edi
mov eax, dword [ebp - 0x178]
mov dword [eax], ecx
mov esi, dword [ebp - 0x16c]
test dl, 2
jne 0x50fc8c
mov eax, dword [ebp - 0x194]
test dl, 0x18
mov ecx, edi
cmovne ecx, esi
sub esi, ecx
mov dword [eax], edi
mov eax, dword [ebp - 0x184]
sar esi, 1
cmp dword [ebp - 0x48], 0
mov dword [eax], ecx
mov eax, dword [ebp - 0x174]
mov dword [eax], esi
je 0x50fc8c
mov eax, dword [ebp - 0x198]
mov dword [eax], edi
mov eax, dword [ebp - 0x188]
mov dword [eax], edi
mov eax, dword [ebp - 0x178]
mov dword [eax], 0
mov edi, dword [ebp - 0x58]
or edx, 1
jmp 0x50fc9e
mov dword [ebp - 0x16c], 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x168], edx
call fcn.00502970
cmp dword [0x5f85c4], 7
mov eax, 0x5f85b0
mov edx, dword [ebp - 0xd0]
cmova eax, dword [0x5f85b0]
and edx, 0xffffffdf
mov esi, dword [0x5f85c0]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], edx
cmp esi, 0x7fffffff
ja 0x5100b6
test esi, esi
je 0x50fda8
mov eax, edx
and eax, 6
cmp al, 6
je 0x50fda8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00453070
add esi, esi
mov edi, eax
push esi
push dword [ebp - 0x48]
push edi
call fcn.0054d470
mov edx, dword [ebp - 0x54]
add esi, edi
mov eax, edx
mov dword [ebp - 0xd4], esi
add esp, 0x14
and eax, 4
mov dword [ebp - 0x4c], eax
jne 0x50fd55
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x44]
mov dword [eax], edi
mov eax, dword [ebp - 0xf0]
mov dword [eax], edi
mov eax, dword [ebp - 0xe0]
mov dword [eax], ecx
mov esi, dword [ebp - 0xd4]
test dl, 2
jne 0x50fda0
mov eax, dword [ebp - 0xfc]
test dl, 0x18
mov ecx, edi
cmovne ecx, esi
sub esi, ecx
mov dword [eax], edi
mov eax, dword [ebp - 0xec]
sar esi, 1
cmp dword [ebp - 0x4c], 0
mov dword [eax], ecx
mov eax, dword [ebp - 0xdc]
mov dword [eax], esi
je 0x50fda0
mov eax, dword [ebp - 0x100]
mov dword [eax], edi
mov eax, dword [ebp - 0xf0]
mov dword [eax], edi
mov eax, dword [ebp - 0xe0]
mov dword [eax], 0
mov edi, dword [ebp - 0x58]
or edx, 1
jmp 0x50fdb2
mov dword [ebp - 0xd4], 0
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [ebp - 0xd0], edx
jbe 0x50fdc2
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.00504f00
mov esi, dword [ebp - 0x50]
add esp, 0xc
push esi
push 0x5bbb34
push eax
call fcn.00477e30
add esp, 8
mov ecx, eax
call fcn.00505a90
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x50fdf8
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00504f00
add esp, 0xc
lea ecx, [esi + 1]
push ecx
push 0x5bbb34
push eax
call fcn.00477e30
add esp, 8
mov ecx, eax
call fcn.00505a90
mov edx, dword [ebp - 0x168]
xor eax, eax
mov esi, dword [ebp - 0x5c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
or esi, 2
mov eax, edx
mov byte [ebp - 4], 3
and al, 0x22
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x44], esi
movq qword [ebp - 0x6c], xmm0
cmp al, 2
je 0x50fe86
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax]
test ecx, ecx
je 0x50fe86
cmp ecx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x194]
cmovb ecx, dword [ebp - 0x16c]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
jmp 0x50feb6
test dl, 4
jne 0x50feb0
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax]
test ecx, ecx
je 0x50feb0
mov eax, dword [ebp - 0x198]
mov edx, dword [eax]
mov eax, dword [ebp - 0x178]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
sub ecx, edx
sar ecx, 1
jmp 0x50feb6
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x50fec4
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00403260
and esi, 0xfffffffd
mov dword [ebp - 4], 2
or esi, 1
mov edx, dword [ebp - 0xd0]
xor eax, eax
xorps xmm0, xmm0
mov byte [ebp - 4], 5
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
or esi, 8
mov eax, edx
mov dword [ebp - 0x18], 0
and al, 0x22
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x44], esi
movq qword [ebp - 0x78], xmm0
cmp al, 2
je 0x50ff30
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax]
test ecx, ecx
je 0x50ff30
cmp ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xfc]
cmovb ecx, dword [ebp - 0xd4]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
jmp 0x50ff60
test dl, 4
jne 0x50ff5a
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax]
test ecx, ecx
je 0x50ff5a
mov eax, dword [ebp - 0x100]
mov edx, dword [eax]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
sub ecx, edx
sar ecx, 1
jmp 0x50ff60
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x50ff6e
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403260
and esi, 0xfffffff7
mov dword [ebp - 4], 4
or esi, 4
mov dword [ebp - 0x5c], esi
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
cmova eax, dword [ebp - 0x28]
push eax
call fcn.0056e316
add esp, 4
test eax, eax
je 0x50ff9f
call fcn.0055fbef
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmova ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 7
push ecx
cmova eax, dword [ebp - 0x40]
push eax
call fcn.0056e33e
add esp, 8
test eax, eax
je 0x50ffca
call fcn.0055fbef
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x60]
call fcn.0050ddf0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x51001c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x510012
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5100bb
push ecx
push edx
call fcn.0054b2c7
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x51006a
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x510060
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5100bb
push ecx
push edx
call fcn.0054b2c7
add esp, 8
mov eax, dword [ebp - 0x50]
dec eax
mov dword [ebp - 0x50], eax
cmp eax, 1
jge 0x50fb90
lea ecx, [ebp - 0x110]
call fcn.005018e0
lea ecx, [ebp - 0x1a8]
call fcn.005018e0
lea ecx, [ebp - 0x240]
call fcn.005018e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054b289
mov esp, ebp
pop ebp
ret
call fcn.005367eb
call fcn.0055fb01
int3