Function at 0x599450
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 0x59a533
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x420], 1
mov byte [ebp - 0x791], 0
mov al, byte [0x66dec4]
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
mov esi, 0x6751a8
lea edi, [ebp - 0x54]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, 0x674f24
lea edi, [ebp - 0xb0]
mov ecx, 0x17
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x788]
mov edx, 0xc
call fcn.00660d08
mov dword [ebp - 0x77c], 0x80000000
xor eax, eax
mov dword [ebp - 0x6cc], eax
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x59990b
push ebp
call fcn.005970cc
pop ecx
test al, al
jne 0x599540
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x420], 0
jmp 0x59a4c8
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x15c]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x14], eax
mov al, byte [0x6752d5]
xor al, 1
mov byte [0x66dec4], al
test al, al
je 0x5995c6
call fcn.00501d74
lea ecx, [ebp - 0x7a0]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.004febb0
mov edx, dword [ebp - 0x7a0]
lea ecx, [ebp - 0x798]
mov eax, 0x59a548
call fcn.0065d910
cmp byte [0x66dec4], 0
je 0x5995ae
call fcn.00501d74
mov ecx, dword [ebp - 0x798]
mov edx, dword [ebp - 0x14]
call fcn.004fec24
jmp 0x5995c6
call fcn.00501d74
mov eax, dword [eax + 0x268]
mov ecx, dword [ebp - 0x798]
mov dl, 2
call fcn.004f9d94
mov eax, dword [0x6752a0]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6752a0]
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 0x599602
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00566cc4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x599673
mov byte [ebp - 0x25], 0
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 4]
cmp ebx, 7
jl 0x599694
push ebp
call fcn.005680e4
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x59974f
push ebp
mov eax, dword [ebp - 8]
mov eax, ebx
call fcn.00567fcc
pop ecx
test al, al
jne 0x59974f
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x458], 0
jne 0x599745
mov eax, dword [ebp - 8]
cmp byte [eax], 1
je 0x599736
lea eax, [ebp - 0x7a0]
push eax
lea edx, [ebp - 0x7b4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.0065c920
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 [0x6721d0]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x7a8], eax
mov byte [ebp - 0x7a4], 0xb
lea edx, [ebp - 0x7b0]
mov eax, 0x59a564
mov ecx, 1
call fcn.0065d7d4
mov eax, dword [ebp - 0x7a0]
mov cx, word [0x59a5c0]
xor edx, edx
call fcn.0062941c
cmp ax, 6
jne 0x599745
push ebp
call fcn.005680e4
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x59974f
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
jne 0x5997bd
lea eax, [ebp - 0xc0]
call fcn.004043d0
mov eax, dword [ebp - 0x10]
call fcn.005bc984
cmp byte [ebp - 9], 0
je 0x59977a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x59978e
mov eax, dword [ebp - 0xbc]
call fcn.0062b708
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
cmp byte [0x66dec4], 0
je 0x5997ae
call fcn.00501d74
xor edx, edx
call fcn.004fec6c
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x420], 0
jmp 0x59a4c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x160], eax
cmp byte [ebp - 0x6c5], 1
jne 0x599835
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x160], 1
je 0x599835
lea eax, [ebp - 0xc0]
call fcn.004043d0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3ee], 0
je 0x599807
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebp - 9], 0
jmp 0x599835
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebp - 0x2c]
call fcn.00660d68
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x15c], 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 + 0x160], 4
jne 0x59993a
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x6752a0]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6752a0]
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x15c]
push eax
call sub.kernel32.dll_SetFilePointer
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x599895
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00566cc4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59993a
mov byte [0x66dec4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x160], 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 + 0xa8]
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 0x599a90
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x160]
cmp ebx, 5
je 0x59998f
cmp ebx, 6
jl 0x599a90
call fcn.005397ec
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.00537750
test al, al
jne 0x599a90
mov ebx, dword [0x6752a0]
mov eax, 0x10023
call fcn.00401e58
mov dword [0x6752a0], eax
mov eax, dword [0x6752a0]
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 + 0x160]
call fcn.00539ad0
mov eax, dword [ebp - 0x7b8]
push eax
call fcn.005397ec
pop edx
call fcn.0053789c
mov dword [ebp - 0x790], eax
cmp byte [0x66dec4], 0
je 0x599a16
call fcn.00501d74
mov ecx, dword [ebp - 0x798]
mov edx, dword [ebp - 0x14]
call fcn.004fec24
mov eax, dword [ebp - 0x790]
mov edx, dword [eax + 0x1cc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1cc]
call fcn.0062f12c
mov eax, dword [ebp - 0x790]
mov eax, dword [eax + 0x4cc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4cc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
call fcn.00561d78
mov eax, dword [ebp - 0x790]
mov al, byte [eax + 0x169]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x169], al
mov eax, dword [ebp - 0x790]
mov eax, dword [eax + 0x140]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x140], eax
mov eax, dword [0x6752a0]
call fcn.00401fac
mov dword [0x6752a0], ebx
jmp 0x599a98
xor eax, eax
mov dword [ebp - 0x790], eax
call fcn.00656a20
mov dword [ebp - 0x6d4], eax
call fcn.00656a20
mov dword [ebp - 0x6d8], eax
call fcn.00656a20
mov dword [ebp - 0x778], eax
mov dl, 1
mov eax, dword [0x61e884]
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 [0x61e6e8]
call fcn.00402898
mov dword [ebp - 0x768], eax
mov ebx, dword [0x672908]
mov bl, byte [ebx]
mov eax, dword [0x672908]
mov byte [eax], 0x2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x160]
cmp eax, 3
jg 0x599b15
je 0x599b53
sub eax, 1
jb 0x599b26
je 0x599b35
dec eax
je 0x599b44
jmp 0x599b80
sub eax, 4
je 0x599b26
dec eax
je 0x599b62
sub eax, 0xeffb
je 0x599b71
jmp 0x599b80
push ebp
call fcn.00571efc
pop ecx
mov byte [ebp - 0x791], al
jmp 0x599b8d
push ebp
call fcn.0057d878
pop ecx
mov byte [ebp - 0x791], al
jmp 0x599b8d
push ebp
call fcn.00586d94
pop ecx
mov byte [ebp - 0x791], al
jmp 0x599b8d
push ebp
call fcn.0058f058
pop ecx
mov byte [ebp - 0x791], al
jmp 0x599b8d
push ebp
call fcn.00590208
pop ecx
mov byte [ebp - 0x791], al
jmp 0x599b8d
push ebp
call fcn.00595f0c
pop ecx
mov byte [ebp - 0x791], al
jmp 0x599b8d
push ebp
call fcn.00572384
pop ecx
mov byte [ebp - 0x791], al
mov eax, dword [0x672908]
mov byte [eax], bl
mov eax, dword [ebp - 0x768]
call fcn.004028c0
mov eax, dword [ebp - 0x778]
call fcn.00656f6c
mov eax, dword [ebp - 0x6d4]
call fcn.00656ff0
call fcn.005397ec
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x790]
call fcn.00656dac
test al, al
jne 0x599bd7
mov eax, dword [ebp - 0x790]
call fcn.004028c0
cmp byte [ebp - 0x791], 0
je 0x59a405
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x599d7a
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x434], 0
je 0x599c2b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x158], 0
jne 0x599c3e
lea edx, [ebp - 0x7b8]
mov eax, dword [ebp - 0x10]
call fcn.005661c8
mov edx, dword [ebp - 0x7b8]
mov eax, dword [ebp - 0x10]
add eax, 0x158
call fcn.004038bc
jmp 0x599c3e
mov eax, dword [ebp - 0x10]
add eax, 0x158
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 + 0x1b0], edx
cmp byte [0x66dec4], 0
je 0x599c73
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x42d], 0
je 0x599c73
call fcn.00501d74
mov eax, dword [eax + 0x268]
xor ecx, ecx
xor edx, edx
call fcn.004f9d94
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3ee], 0
jne 0x599c97
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3ed], 0
jne 0x599c97
mov eax, dword [ebp - 0x2c]
call fcn.00626348
test al, al
je 0x599c9f
mov eax, dword [ebp - 0x10]
call fcn.005bc984
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3ed], 0
je 0x599cb6
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x1b0], edx
mov eax, dword [ebp - 0x10]
fld qword [eax + 0x198]
fcomp dword [0x59a5c4]
fnstsw ax
sahf
jne 0x599cdf
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.00625e1c
mov eax, dword [ebp - 0x10]
fstp qword [eax + 0x198]
wait
cmp byte [ebp - 9], 0
je 0x599cee
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x599d02
mov eax, dword [ebp - 0xbc]
call fcn.0062b708
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x434], 0
je 0x599d7a
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x1b0], 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 + 0x15c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x15c], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x435], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x38], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4ac], 0x80000000
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4b0], 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4cc]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x599df6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4cc]
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 0x599dc3
xor ecx, ecx
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x18], 0
jge 0x599dce
xor ecx, ecx
mov dword [eax + 0x18], ecx
cmp dword [eax + 0x14], 0
jge 0x599dd9
xor ecx, ecx
mov dword [eax + 0x14], ecx
cmp dword [eax + 0x1c], 0
jge 0x599de4
xor ecx, ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [edx + 0x5c8]
mov dword [esi + 0x5c8], eax
dec ebx
cmp ebx, 0xffffffff
jne 0x599d91
mov eax, dword [ebp - 0x6d0]
cmp dword [eax + 8], 0
jne 0x599e7f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
cmp dword [eax + 0x18], 1
jle 0x599e7f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + edx*4 - 8]
mov eax, ebx
call fcn.00552644
cmp ax, 3
je 0x599e7f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
call fcn.00656c90
mov edx, dword [eax + 0x48]
mov eax, dword [ebx + 0x48]
call fcn.00656650
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
call fcn.00656c90
call fcn.004028c0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
call fcn.00656d0c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
call fcn.00656c90
mov dword [ebp - 0x6d0], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x160], 1
jne 0x599e9c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x124]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
jmp 0x599eae
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x6d0]
call fcn.00552644
test ax, ax
je 0x599ee6
mov edx, eax
sub dx, 2
je 0x599f54
sub dx, 3
je 0x599f54
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x430], 0
je 0x599ee6
cmp ax, 4
je 0x599f54
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x42f], 0
je 0x599f48
cmp ax, 3
jne 0x599f2a
mov eax, dword [ebp - 0x6d0]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x6d0]
call fcn.0055325c
mov edx, eax
mov eax, dword [ebp - 0x6d0]
mov eax, dword [eax + 0x48]
mov ecx, 9
call fcn.006567f8
mov eax, dword [ebp - 0x6d0]
dec dword [eax + 8]
mov ecx, 2
mov dl, 0x17
mov eax, dword [ebp - 0x6d0]
call fcn.00551cb4
mov eax, dword [ebp - 0x6d0]
mov byte [eax + 0x3c], 0
jmp 0x599f54
cmp ax, 3
je 0x599f54
mov eax, dword [ebp - 8]
dec dword [eax + 0x14]
call fcn.005397ec
test byte [eax + 0x54], 0x80
je 0x599fbf
call fcn.005397ec
test byte [eax + 0x54], 0x20
jne 0x599fbf
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x160], 6
jge 0x599fbf
mov eax, dword [ebp - 0x6d0]
call fcn.00552644
cmp ax, 2
jne 0x599fbf
mov eax, dword [ebp - 0x6d0]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x6d0]
call fcn.0055325c
mov edx, eax
mov eax, dword [ebp - 0x6d0]
mov eax, dword [eax + 0x48]
mov ecx, 9
call fcn.006567f8
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 + 0x160], 1
je 0x59a021
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x124], eax
mov bl, 1
lea esi, [ebp - 0x788]
mov eax, dword [esi]
test eax, eax
je 0x59a018
mov edx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
call fcn.00656c14
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 + 0x124], ecx
mov eax, dword [esi]
call fcn.00656ff0
inc ebx
add esi, 4
cmp bl, 4
jne 0x599fe8
push ebp
call fcn.00567168
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x160], 1
jne 0x59a03b
push ebp
call fcn.00567334
pop ecx
push ebp
call fcn.005675c8
pop ecx
mov eax, dword [ebp - 0x6d8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x59a073
mov eax, dword [ebp - 0x10]
call fcn.005e71d8
mov eax, dword [ebp - 0x6d8]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x10]
call fcn.005e8494
dec ebx
cmp ebx, 0xffffffff
jne 0x59a051
mov eax, dword [ebp - 0x6d8]
call fcn.00656ff0
push ebp
call fcn.00597384
pop ecx
cmp byte [ebp - 0x789], 0
jne 0x59a0b7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x160]
sub eax, 2
jb 0x59a0a1
sub eax, 2
jne 0x59a0b7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5fc]
cmp dword [eax + 0x18], 0
jle 0x59a0b7
push ebp
call fcn.005976e0
pop ecx
push ebp
call fcn.00597b50
pop ecx
push ebp
call fcn.00597df8
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x434], 0
je 0x59a0ec
cmp dword [ebp - 0x77c], 0x80000000
je 0x59a0ec
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x77c]
mov dword [eax + 0x160], edx
push ebp
call fcn.00598414
pop ecx
mov eax, dword [0x672428]
test byte [eax + 0x208], 8
jne 0x59a10d
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x454], 0
je 0x59a17e
cmp dword [ebp - 0xb8], 0
jge 0x59a120
xor eax, eax
mov dword [ebp - 0xb8], eax
jmp 0x59a145
lea edx, [ebp - 0x7d8]
mov eax, dword [ebp - 0x10]
call fcn.005c8dfc
mov eax, dword [ebp - 0x7c8]
mov edx, dword [ebp - 0xb8]
call fcn.0065b28c
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
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 0x59a170
dec edx
mov dword [ebp - 0xb4], edx
jmp 0x59a18e
test ecx, ecx
jge 0x59a18e
xor eax, eax
mov dword [ebp - 0xb4], eax
jmp 0x59a18e
xor eax, eax
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
mov eax, dword [0x6723a0]
cmp byte [eax], 0
je 0x59a1a3
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x8cc], edx
push ebp
call fcn.005989a4
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x42e], 0
je 0x59a1bd
push ebp
call fcn.00598e6c
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x42d], 0
je 0x59a20f
mov eax, dword [ebp - 0x10]
call fcn.005bd7d0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x401], 1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x140]
mov eax, dword [ebp - 0x10]
call fcn.00562914
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xb8]
mov dword [eax + 0x250], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xb4]
mov dword [eax + 0x254], edx
jmp 0x59a469
cmp byte [0x66dec4], 0
je 0x59a23b
call fcn.00501d74
mov eax, dword [eax + 0x268]
mov eax, dword [eax + 0x240]
push eax
call fcn.00501d74
mov eax, dword [eax + 0x268]
pop edx
call fcn.004f9e50
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3f7], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x404], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3f9], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3fa], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3fc], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x401], 1
mov dl, 0x63
mov eax, dword [ebp - 0x10]
call fcn.00565be8
mov dl, 0x21
mov eax, dword [ebp - 0x10]
call fcn.00565be8
mov eax, dword [ebp - 0x10]
call fcn.005f083c
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.00565ca4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4cc]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x59a2d1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4cc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
add eax, 0x528
call fcn.005448c4
dec ebx
cmp ebx, 0xffffffff
jne 0x59a2b2
mov eax, dword [ebp - 0x10]
call fcn.005bd7d0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x457], 0
jne 0x59a469
mov eax, dword [0x672428]
mov eax, dword [eax + 0x170]
test eax, eax
je 0x59a333
mov edx, dword [0x672428]
test eax, eax
jle 0x59a31d
mov edx, dword [0x672428]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x140], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x169], 0
jmp 0x59a333
mov eax, dword [0x672428]
mov al, byte [eax + 0x170]
neg al
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x169], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x140]
mov eax, dword [ebp - 0x10]
call fcn.00562914
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x146], 2
jne 0x59a37b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xb8]
mov dword [eax + 0x138], edx
mov edx, dword [ebp - 0xb4]
mov dword [eax + 0x13c], 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 0x59a395
mov dl, 0x27
mov eax, dword [ebp - 0x10]
call fcn.00565be8
push 0
mov al, byte [0x59a5c4]
push eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x10]
call fcn.005c332c
test ebx, ebx
jne 0x59a3bd
mov eax, dword [ebp - 0x10]
call fcn.00565c80
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3f4], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3f7], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3f2], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3f9], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3fa], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x3fc], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x401], 0
jmp 0x59a469
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x59a469
mov eax, dword [ebp - 0x10]
call fcn.005bc984
cmp byte [ebp - 9], 0
je 0x59a424
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x59a438
mov eax, dword [ebp - 0xbc]
call fcn.0062b708
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x499], 0
jne 0x59a45f
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov eax, 0x59a5c8
call fcn.00629744
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x499], 0
cmp byte [0x66dec4], 0
je 0x59a480
call fcn.00501d74
xor edx, edx
call fcn.004fec6c
jmp 0x59a4a8
cmp byte [0x6752d5], 0
jne 0x59a4a8
call fcn.005397ec
test byte [eax + 0x54], 4
jne 0x59a4a8
call fcn.00501d74
mov eax, dword [eax + 0x268]
xor ecx, ecx
xor edx, edx
call fcn.004f9d94
mov eax, dword [ebp - 0x76c]
call fcn.004028c0
mov al, byte [ebp - 0x799]
mov byte [0x66dec4], al
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x420], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a53a
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.004043d0
lea eax, [ebp - 0xc0]
call fcn.004043d0
lea eax, [ebp - 0xbc]
call fcn.00403880
lea eax, [ebp - 0x2c]
call fcn.00403880
lea eax, [ebp - 4]
call fcn.00403880
ret