Function at 0x597f78
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff828
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7b8], ecx
mov dword [ebp - 0x7a0], ecx
mov dword [ebp - 0x7b4], ecx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x798], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x598ffd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x429], 1
mov byte [ebp - 0x791], 0
mov al, byte [0x66a86c]
mov byte [ebp - 0x799], al
mov byte [ebp - 9], 0
mov byte [ebp - 0x78a], 1
mov byte [ebp - 0x789], 0
mov byte [ebp - 0x6c5], 0
lea eax, [ebp - 0x54]
call fcn.00544274
lea eax, [ebp - 0xb0]
call fcn.00544214
lea eax, [ebp - 0x788]
mov edx, 0xc
call fcn.00658ea4
mov dword [ebp - 0x77c], 0x80000000
xor eax, eax
mov dword [ebp - 0x6cc], eax
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x59841b
push ebp
call fcn.00595d34
pop ecx
test al, al
jne 0x59805a
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x429], 0
jmp 0x598f92
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x14], eax
mov al, byte [0x6733f9]
xor al, 1
mov byte [0x66a86c], al
test al, al
je 0x5980d9
lea edx, [ebp - 0x7a0]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.00506bc4
mov edx, dword [ebp - 0x7a0]
lea ecx, [ebp - 0x798]
mov eax, dword [0x66efa0]
mov eax, dword [eax]
call fcn.00655b64
cmp byte [0x66a86c], 0
je 0x5980c5
call fcn.00506a54
mov ecx, dword [ebp - 0x798]
mov edx, dword [ebp - 0x14]
call fcn.00503ed0
jmp 0x5980d9
mov eax, dword [0x66fc38]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x798]
mov dl, 2
call fcn.004ff550
mov eax, dword [0x6733c4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6733c4]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x25], 1
xor eax, eax
push ebp
push 0x598115
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00565f70
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x598184
mov byte [ebp - 0x25], 0
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 4]
cmp ebx, 7
jl 0x5981a5
push ebp
call fcn.00567324
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x598262
push ebp
mov eax, dword [ebp - 8]
mov eax, ebx
call fcn.0056720c
pop ecx
test al, al
jne 0x598262
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x460], 0
jne 0x598258
mov eax, dword [ebp - 8]
cmp byte [eax], 1
je 0x598249
lea eax, [ebp - 0x7a0]
push eax
lea edx, [ebp - 0x7b4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.00654c3c
mov eax, dword [ebp - 0x7b4]
mov dword [ebp - 0x7b0], eax
mov byte [ebp - 0x7ac], 0xb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [0x66ed9c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x7a8], eax
mov byte [ebp - 0x7a4], 6
lea edx, [ebp - 0x7b0]
mov eax, dword [0x66fac0]
mov eax, dword [eax]
mov ecx, 1
call fcn.00655a28
mov eax, dword [ebp - 0x7a0]
mov cx, word [0x599014]
xor edx, edx
call fcn.0061fbb0
cmp ax, 6
jne 0x598258
push ebp
call fcn.00567324
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x598262
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
jne 0x5982d2
lea eax, [ebp - 0xc0]
call fcn.004043c0
mov eax, dword [ebp - 0x10]
call fcn.005b9b50
cmp byte [ebp - 9], 0
je 0x59828d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x5982a3
xor edx, edx
mov eax, dword [ebp - 0xbc]
call fcn.00622138
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
cmp byte [0x66a86c], 0
je 0x5982c3
call fcn.00506a54
xor edx, edx
call fcn.00503f2c
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x429], 0
jmp 0x598f92
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x168], eax
cmp byte [ebp - 0x6c5], 1
jne 0x59834a
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 1
je 0x59834a
lea eax, [ebp - 0xc0]
call fcn.004043c0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f6], 0
je 0x59831c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebp - 9], 0
jmp 0x59834a
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebp - 0x2c]
call fcn.00658f04
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x164], ebx
push 0
push 0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 4
jne 0x59844a
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x6733c4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6733c4]
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_SetFilePointer
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x5983aa
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00565f70
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59844a
mov byte [0x66a86c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x168], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x6d0], eax
mov byte [ebp - 0x770], 0
mov byte [ebp - 0x76f], 0
xor eax, eax
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x598594
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x168]
cmp ebx, 5
je 0x59849f
cmp ebx, 6
jl 0x598594
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.00539f20
test al, al
jne 0x598594
mov ebx, dword [0x6733c4]
mov eax, 0x10023
call fcn.00401e58
mov dword [0x6733c4], eax
mov eax, dword [0x6733c4]
add eax, 0x10000
add eax, 0x20
dec eax
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0x7b8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x168]
call fcn.00539810
mov eax, dword [ebp - 0x7b8]
call fcn.00539938
mov dword [ebp - 0x790], eax
cmp byte [0x66a86c], 0
je 0x59851a
call fcn.00506a54
mov ecx, dword [ebp - 0x798]
mov edx, dword [ebp - 0x14]
call fcn.00503ed0
mov eax, dword [ebp - 0x790]
mov edx, dword [eax + 0x1d4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1d4]
call fcn.0062592c
mov eax, dword [ebp - 0x790]
mov eax, dword [eax + 0x4d4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4d4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
call fcn.0056154c
mov eax, dword [ebp - 0x790]
mov al, byte [eax + 0x171]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x171], al
mov eax, dword [ebp - 0x790]
mov eax, dword [eax + 0x148]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x148], eax
mov eax, dword [0x6733c4]
call fcn.00401fac
mov dword [0x6733c4], ebx
jmp 0x59859c
xor eax, eax
mov dword [ebp - 0x790], eax
call fcn.0064e78c
mov dword [ebp - 0x6d4], eax
call fcn.0064e78c
mov dword [ebp - 0x6d8], eax
call fcn.0064e78c
mov dword [ebp - 0x778], eax
mov dl, 1
mov eax, dword [0x6174a4]
call fcn.00402898
mov dword [ebp - 0x76c], eax
mov eax, dword [ebp - 0x76c]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov dl, 1
mov eax, dword [0x617308]
call fcn.00402898
mov dword [ebp - 0x768], eax
mov ebx, dword [0x6701a8]
mov bl, byte [ebx]
mov eax, dword [0x6701a8]
mov byte [eax], 0x2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x168]
cmp eax, 3
jg 0x598619
je 0x598657
sub eax, 1
jb 0x59862a
je 0x598639
dec eax
je 0x598648
jmp 0x598684
sub eax, 4
je 0x59862a
dec eax
je 0x598666
sub eax, 0xeffb
je 0x598675
jmp 0x598684
push ebp
call fcn.00570fd4
pop ecx
mov byte [ebp - 0x791], al
jmp 0x598691
push ebp
call fcn.0057c870
pop ecx
mov byte [ebp - 0x791], al
jmp 0x598691
push ebp
call fcn.00585d94
pop ecx
mov byte [ebp - 0x791], al
jmp 0x598691
push ebp
call fcn.0058dd88
pop ecx
mov byte [ebp - 0x791], al
jmp 0x598691
push ebp
call fcn.0058ef0c
pop ecx
mov byte [ebp - 0x791], al
jmp 0x598691
push ebp
call fcn.00594b8c
pop ecx
mov byte [ebp - 0x791], al
jmp 0x598691
push ebp
call fcn.0057144c
pop ecx
mov byte [ebp - 0x791], al
mov eax, dword [0x6701a8]
mov byte [eax], bl
mov eax, dword [ebp - 0x768]
call fcn.004028c0
mov eax, dword [ebp - 0x778]
call fcn.0064ed48
mov eax, dword [ebp - 0x6d4]
call fcn.0064edac
mov eax, dword [ebp - 0x790]
call fcn.005fbfe0
cmp byte [ebp - 0x791], 0
je 0x598ed0
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x598865
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x43c], 0
je 0x598718
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x160], 0
jne 0x59872b
lea edx, [ebp - 0x7b8]
mov eax, dword [ebp - 0x10]
call fcn.00565578
mov edx, dword [ebp - 0x7b8]
mov eax, dword [ebp - 0x10]
add eax, 0x160
call fcn.004038bc
jmp 0x59872b
mov eax, dword [ebp - 0x10]
add eax, 0x160
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.004038bc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x1b8], edx
cmp byte [0x66a86c], 0
je 0x59875c
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x174], 0
jne 0x59875c
mov eax, dword [0x66fc38]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
call fcn.004ff550
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f6], 0
jne 0x598780
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f5], 0
jne 0x598780
mov eax, dword [ebp - 0x2c]
call fcn.0061caec
test al, al
je 0x598788
mov eax, dword [ebp - 0x10]
call fcn.005b9b50
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f5], 0
je 0x59879f
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x1b8], edx
mov eax, dword [ebp - 0x10]
fld qword [eax + 0x1a0]
fcomp dword [0x599018]
fnstsw ax
sahf
jne 0x5987c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.0061c640
mov eax, dword [ebp - 0x10]
fstp qword [eax + 0x1a0]
wait
cmp byte [ebp - 9], 0
je 0x5987d7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x5987ed
xor edx, edx
mov eax, dword [ebp - 0xbc]
call fcn.00622138
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x43c], 0
je 0x598865
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x1b8], edx
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.004038bc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x164]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x164], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x43d], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x38], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4b4], 0x80000000
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4b8], 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4d4]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x5988e1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4d4]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ebx*4]
lea eax, [esi + 0x528]
mov cl, byte [edx + 0x550]
mov byte [eax + 0x28], cl
mov cl, byte [edx + 0x551]
mov byte [eax + 0x29], cl
cmp dword [eax + 0x10], 0
jge 0x5988ae
xor ecx, ecx
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x18], 0
jge 0x5988b9
xor ecx, ecx
mov dword [eax + 0x18], ecx
cmp dword [eax + 0x14], 0
jge 0x5988c4
xor ecx, ecx
mov dword [eax + 0x14], ecx
cmp dword [eax + 0x1c], 0
jge 0x5988cf
xor ecx, ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [edx + 0x5c8]
mov dword [esi + 0x5c8], eax
dec ebx
cmp ebx, 0xffffffff
jne 0x59887c
mov eax, dword [ebp - 0x6d0]
cmp dword [eax + 8], 0
jne 0x59896a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
cmp dword [eax + 0x18], 1
jle 0x59896a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + edx*4 - 8]
mov eax, ebx
call fcn.00551fcc
cmp ax, 3
je 0x59896a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.0064ea3c
mov edx, dword [eax + 0x48]
mov eax, dword [ebx + 0x48]
call fcn.0064e374
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.0064ea3c
call fcn.004028c0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.0064eab8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.0064ea3c
mov dword [ebp - 0x6d0], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 1
jne 0x598997
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x12c]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x6d0]
call fcn.00551fcc
test ax, ax
je 0x5989cf
mov edx, eax
sub dx, 2
je 0x598a3d
sub dx, 3
je 0x598a3d
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x438], 0
je 0x5989cf
cmp ax, 4
je 0x598a3d
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x437], 0
je 0x598a31
cmp ax, 3
jne 0x598a13
mov eax, dword [ebp - 0x6d0]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x6d0]
call fcn.00552c48
mov edx, eax
mov eax, dword [ebp - 0x6d0]
mov eax, dword [eax + 0x48]
mov ecx, 9
call fcn.0064e528
mov eax, dword [ebp - 0x6d0]
dec dword [eax + 8]
mov ecx, 2
mov dl, 0x17
mov eax, dword [ebp - 0x6d0]
call fcn.0055161c
mov eax, dword [ebp - 0x6d0]
mov byte [eax + 0x3c], 0
jmp 0x598a3d
cmp ax, 3
je 0x598a3d
mov eax, dword [ebp - 8]
dec dword [eax + 0x14]
mov eax, dword [0x66f038]
test byte [eax], 0x80
je 0x598aa6
mov eax, dword [0x66f038]
test byte [eax], 0x20
jne 0x598aa6
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 6
jge 0x598aa6
mov eax, dword [ebp - 0x6d0]
call fcn.00551fcc
cmp ax, 2
jne 0x598aa6
mov eax, dword [ebp - 0x6d0]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x6d0]
call fcn.00552c48
mov edx, eax
mov eax, dword [ebp - 0x6d0]
mov eax, dword [eax + 0x48]
mov ecx, 9
call fcn.0064e528
mov eax, dword [ebp - 0x6d0]
dec dword [eax + 8]
mov eax, dword [ebp - 8]
dec dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 1
je 0x598b08
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x12c], eax
mov bl, 1
lea esi, [ebp - 0x788]
mov eax, dword [esi]
test eax, eax
je 0x598aff
mov edx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.0064e978
xor eax, eax
mov al, bl
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
mov dword [edx + eax*4 + 0x12c], ecx
mov eax, dword [esi]
call fcn.0064edac
inc ebx
add esi, 4
cmp bl, 4
jne 0x598acf
push ebp
call fcn.005663bc
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 1
jne 0x598b22
push ebp
call fcn.00566594
pop ecx
push ebp
call fcn.00566828
pop ecx
mov eax, dword [ebp - 0x6d8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x598b5a
mov eax, dword [ebp - 0x10]
call fcn.005e2cb0
mov eax, dword [ebp - 0x6d8]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x10]
call fcn.005e3f30
dec ebx
cmp ebx, 0xffffffff
jne 0x598b38
mov eax, dword [ebp - 0x6d8]
call fcn.0064edac
push ebp
call fcn.00595f44
pop ecx
cmp byte [ebp - 0x789], 0
jne 0x598b9e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x168]
sub eax, 2
jb 0x598b88
sub eax, 2
jne 0x598b9e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x604]
cmp dword [eax + 0x18], 0
jle 0x598b9e
push ebp
call fcn.00596338
pop ecx
push ebp
call fcn.005967a8
pop ecx
push ebp
call fcn.00596960
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x43c], 0
je 0x598bd3
cmp dword [ebp - 0x77c], 0x80000000
je 0x598bd3
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x77c]
mov dword [eax + 0x168], edx
push ebp
call fcn.00596f58
pop ecx
mov eax, dword [0x66ebf8]
test byte [eax], 8
jne 0x598bf0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x45c], 0
je 0x598c61
cmp dword [ebp - 0xb8], 0
jge 0x598c03
xor eax, eax
mov dword [ebp - 0xb8], eax
jmp 0x598c28
lea edx, [ebp - 0x7d8]
mov eax, dword [ebp - 0x10]
call fcn.005c5ba8
mov eax, dword [ebp - 0x7c8]
mov edx, dword [ebp - 0xb8]
call fcn.00653538
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0xb8]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0xb4]
cmp edx, ecx
jg 0x598c53
dec edx
mov dword [ebp - 0xb4], edx
jmp 0x598c71
test ecx, ecx
jge 0x598c71
xor eax, eax
mov dword [ebp - 0xb4], eax
jmp 0x598c71
xor eax, eax
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
mov eax, dword [0x66f294]
cmp byte [eax], 0
je 0x598c86
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x90c], edx
push ebp
call fcn.005974dc
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x436], 0
je 0x598ca0
push ebp
call fcn.0059799c
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x174], 0
jne 0x598cf2
mov eax, dword [ebp - 0x10]
call fcn.005ba83c
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x40a], 1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x148]
mov eax, dword [ebp - 0x10]
call fcn.00561ff8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xb8]
mov dword [eax + 0x258], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xb4]
mov dword [eax + 0x25c], edx
jmp 0x598f38
cmp byte [0x66a86c], 0
je 0x598d14
mov eax, dword [0x66fc38]
mov eax, dword [eax]
mov edx, dword [eax + 0x25c]
mov eax, dword [0x66fc38]
mov eax, dword [eax]
call fcn.004ff60c
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x400], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x40d], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x402], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x403], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x405], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x40a], 1
mov cl, 0x22
mov dl, 0x63
mov eax, dword [ebp - 0x10]
call fcn.00564f9c
mov eax, dword [ebp - 0x10]
call fcn.005ebbe0
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.00565028
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4d4]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x598da2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4d4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
add eax, 0x528
call fcn.0054436c
dec ebx
cmp ebx, 0xffffffff
jne 0x598d83
mov eax, dword [ebp - 0x10]
call fcn.005ba83c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x45f], 0
jne 0x598f38
mov eax, dword [0x66fc50]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x598dfe
mov edx, dword [0x66fc50]
test eax, eax
jle 0x598deb
mov edx, dword [0x66fc50]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x171], 0
jmp 0x598dfe
mov eax, dword [0x66fc50]
mov al, byte [eax + 0x2c]
neg al
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x171], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x148]
mov eax, dword [ebp - 0x10]
call fcn.00561ff8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x14e], 2
jne 0x598e46
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xb8]
mov dword [eax + 0x140], edx
mov edx, dword [ebp - 0xb4]
mov dword [eax + 0x144], edx
xor eax, eax
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
mov ebx, dword [ebp - 0xb8]
add ebx, dword [ebp - 0xb4]
test ebx, ebx
jne 0x598e60
mov dl, 0x28
mov eax, dword [ebp - 0x10]
call fcn.00564f50
push 0
mov al, byte [0x599018]
push eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x10]
call fcn.005c0320
test ebx, ebx
jne 0x598e88
mov eax, dword [ebp - 0x10]
call fcn.00565004
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3fd], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x400], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3fb], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x402], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x403], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x405], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x40a], 0
jmp 0x598f38
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x598f38
mov eax, dword [ebp - 0x10]
call fcn.005b9b50
cmp byte [ebp - 9], 0
je 0x598eef
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x598f05
xor edx, edx
mov eax, dword [ebp - 0xbc]
call fcn.00622138
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x4a1], 0
jne 0x598f2e
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov eax, dword [0x670000]
mov eax, dword [eax]
call fcn.00620080
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4a1], 0
cmp byte [0x66a86c], 0
je 0x598f4f
call fcn.00506a54
xor edx, edx
call fcn.00503f2c
jmp 0x598f72
cmp byte [0x6733f9], 0
jne 0x598f72
mov eax, dword [0x66f038]
test byte [eax], 4
jne 0x598f72
mov eax, dword [0x66fc38]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
call fcn.004ff550
mov eax, dword [ebp - 0x76c]
call fcn.004028c0
mov al, byte [ebp - 0x799]
mov byte [0x66a86c], al
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x429], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599004
lea eax, [ebp - 0x7b8]
call fcn.00403880
lea eax, [ebp - 0x7b4]
call fcn.00403274
lea eax, [ebp - 0x7a0]
call fcn.00403274
lea eax, [ebp - 0x798]
call fcn.00403274
lea eax, [ebp - 0xc4]
call fcn.004043c0
lea eax, [ebp - 0xc0]
call fcn.004043c0
lea eax, [ebp - 0xbc]
call fcn.00403880
lea eax, [ebp - 0x2c]
call fcn.00403880
lea eax, [ebp - 4]
call fcn.00403880
ret