Function at 0x59af30
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 0x59bfb5
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 [0x66d860]
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.0054722c
lea eax, [ebp - 0xb0]
call fcn.005471cc
lea eax, [ebp - 0x788]
mov edx, 0xc
call fcn.0065c4dc
mov dword [ebp - 0x77c], 0x80000000
xor eax, eax
mov dword [ebp - 0x6cc], eax
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x59b3d3
push ebp
call fcn.00598cec
pop ecx
test al, al
jne 0x59b012
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x429], 0
jmp 0x59bf4a
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 [0x6763f9]
xor al, 1
mov byte [0x66d860], al
test al, al
je 0x59b091
lea edx, [ebp - 0x7a0]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.00509558
mov edx, dword [ebp - 0x7a0]
lea ecx, [ebp - 0x798]
mov eax, dword [0x672008]
mov eax, dword [eax]
call fcn.0065918c
cmp byte [0x66d860], 0
je 0x59b07d
call fcn.005093e8
mov ecx, dword [ebp - 0x798]
mov edx, dword [ebp - 0x14]
call fcn.0050687c
jmp 0x59b091
mov eax, dword [0x672c9c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x798]
mov dl, 2
call fcn.00501f00
mov eax, dword [0x6763c4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6763c4]
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 0x59b0cd
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00568f28
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b13c
mov byte [ebp - 0x25], 0
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 4]
cmp ebx, 7
jl 0x59b15d
push ebp
call fcn.0056a2dc
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x59b21a
push ebp
mov eax, dword [ebp - 8]
mov eax, ebx
call fcn.0056a1c4
pop ecx
test al, al
jne 0x59b21a
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x460], 0
jne 0x59b210
mov eax, dword [ebp - 8]
cmp byte [eax], 1
je 0x59b201
lea eax, [ebp - 0x7a0]
push eax
lea edx, [ebp - 0x7b4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.00658264
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 [0x671e04]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x7a8], eax
mov byte [ebp - 0x7a4], 6
lea edx, [ebp - 0x7b0]
mov eax, dword [0x672b24]
mov eax, dword [eax]
mov ecx, 1
call fcn.00659050
mov eax, dword [ebp - 0x7a0]
mov cx, word [0x59bfcc]
xor edx, edx
call fcn.006230e8
cmp ax, 6
jne 0x59b210
push ebp
call fcn.0056a2dc
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x59b21a
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
jne 0x59b28a
lea eax, [ebp - 0xc0]
call fcn.004043d0
mov eax, dword [ebp - 0x10]
call fcn.005bcb08
cmp byte [ebp - 9], 0
je 0x59b245
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x59b25b
xor edx, edx
mov eax, dword [ebp - 0xbc]
call fcn.00625670
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
cmp byte [0x66d860], 0
je 0x59b27b
call fcn.005093e8
xor edx, edx
call fcn.005068d4
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x429], 0
jmp 0x59bf4a
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 0x59b302
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 1
je 0x59b302
lea eax, [ebp - 0xc0]
call fcn.004043d0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f6], 0
je 0x59b2d4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebp - 9], 0
jmp 0x59b302
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebp - 0x2c]
call fcn.0065c53c
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 0x59b402
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x6763c4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6763c4]
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 0x59b362
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00568f28
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b402
mov byte [0x66d860], 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 0x59b54c
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x168]
cmp ebx, 5
je 0x59b457
cmp ebx, 6
jl 0x59b54c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.0053cd74
test al, al
jne 0x59b54c
mov ebx, dword [0x6763c4]
mov eax, 0x10023
call fcn.00401e58
mov dword [0x6763c4], eax
mov eax, dword [0x6763c4]
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.0053c664
mov eax, dword [ebp - 0x7b8]
call fcn.0053c78c
mov dword [ebp - 0x790], eax
cmp byte [0x66d860], 0
je 0x59b4d2
call fcn.005093e8
mov ecx, dword [ebp - 0x798]
mov edx, dword [ebp - 0x14]
call fcn.0050687c
mov eax, dword [ebp - 0x790]
mov edx, dword [eax + 0x1d4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1d4]
call fcn.00628e08
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.00564504
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 [0x6763c4]
call fcn.00401fac
mov dword [0x6763c4], ebx
jmp 0x59b554
xor eax, eax
mov dword [ebp - 0x790], eax
call fcn.00651de8
mov dword [ebp - 0x6d4], eax
call fcn.00651de8
mov dword [ebp - 0x6d8], eax
call fcn.00651de8
mov dword [ebp - 0x778], eax
mov dl, 1
mov eax, dword [0x61a9dc]
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 [0x61a840]
call fcn.00402898
mov dword [ebp - 0x768], eax
mov ebx, dword [0x67320c]
mov bl, byte [ebx]
mov eax, dword [0x67320c]
mov byte [eax], 0x2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x168]
cmp eax, 3
jg 0x59b5d1
je 0x59b60f
sub eax, 1
jb 0x59b5e2
je 0x59b5f1
dec eax
je 0x59b600
jmp 0x59b63c
sub eax, 4
je 0x59b5e2
dec eax
je 0x59b61e
sub eax, 0xeffb
je 0x59b62d
jmp 0x59b63c
push ebp
call fcn.00573f8c
pop ecx
mov byte [ebp - 0x791], al
jmp 0x59b649
push ebp
call fcn.0057f828
pop ecx
mov byte [ebp - 0x791], al
jmp 0x59b649
push ebp
call fcn.00588d4c
pop ecx
mov byte [ebp - 0x791], al
jmp 0x59b649
push ebp
call fcn.00590d40
pop ecx
mov byte [ebp - 0x791], al
jmp 0x59b649
push ebp
call fcn.00591ec4
pop ecx
mov byte [ebp - 0x791], al
jmp 0x59b649
push ebp
call fcn.00597b44
pop ecx
mov byte [ebp - 0x791], al
jmp 0x59b649
push ebp
call fcn.00574404
pop ecx
mov byte [ebp - 0x791], al
mov eax, dword [0x67320c]
mov byte [eax], bl
mov eax, dword [ebp - 0x768]
call fcn.004028c0
mov eax, dword [ebp - 0x778]
call fcn.006523a4
mov eax, dword [ebp - 0x6d4]
call fcn.00652408
mov eax, dword [ebp - 0x790]
call fcn.005fefa4
cmp byte [ebp - 0x791], 0
je 0x59be88
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x59b81d
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x43c], 0
je 0x59b6d0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x160], 0
jne 0x59b6e3
lea edx, [ebp - 0x7b8]
mov eax, dword [ebp - 0x10]
call fcn.00568530
mov edx, dword [ebp - 0x7b8]
mov eax, dword [ebp - 0x10]
add eax, 0x160
call fcn.004038bc
jmp 0x59b6e3
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 [0x66d860], 0
je 0x59b714
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x174], 0
jne 0x59b714
mov eax, dword [0x672c9c]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
call fcn.00501f00
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f6], 0
jne 0x59b738
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f5], 0
jne 0x59b738
mov eax, dword [ebp - 0x2c]
call fcn.00620024
test al, al
je 0x59b740
mov eax, dword [ebp - 0x10]
call fcn.005bcb08
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x3f5], 0
je 0x59b757
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x1b8], edx
mov eax, dword [ebp - 0x10]
fld qword [eax + 0x1a0]
fcomp dword [0x59bfd0]
fnstsw ax
sahf
jne 0x59b780
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.0061fb78
mov eax, dword [ebp - 0x10]
fstp qword [eax + 0x1a0]
wait
cmp byte [ebp - 9], 0
je 0x59b78f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x59b7a5
xor edx, edx
mov eax, dword [ebp - 0xbc]
call fcn.00625670
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x43c], 0
je 0x59b81d
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 0x59b899
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 0x59b866
xor ecx, ecx
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x18], 0
jge 0x59b871
xor ecx, ecx
mov dword [eax + 0x18], ecx
cmp dword [eax + 0x14], 0
jge 0x59b87c
xor ecx, ecx
mov dword [eax + 0x14], ecx
cmp dword [eax + 0x1c], 0
jge 0x59b887
xor ecx, ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [edx + 0x5c8]
mov dword [esi + 0x5c8], eax
dec ebx
cmp ebx, 0xffffffff
jne 0x59b834
mov eax, dword [ebp - 0x6d0]
cmp dword [eax + 8], 0
jne 0x59b922
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
cmp dword [eax + 0x18], 1
jle 0x59b922
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.00554f84
cmp ax, 3
je 0x59b922
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.00652098
mov edx, dword [eax + 0x48]
mov eax, dword [ebx + 0x48]
call fcn.006519d0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.00652098
call fcn.004028c0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.00652114
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.00652098
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 0x59b94f
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.00554f84
test ax, ax
je 0x59b987
mov edx, eax
sub dx, 2
je 0x59b9f5
sub dx, 3
je 0x59b9f5
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x438], 0
je 0x59b987
cmp ax, 4
je 0x59b9f5
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x437], 0
je 0x59b9e9
cmp ax, 3
jne 0x59b9cb
mov eax, dword [ebp - 0x6d0]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x6d0]
call fcn.00555c00
mov edx, eax
mov eax, dword [ebp - 0x6d0]
mov eax, dword [eax + 0x48]
mov ecx, 9
call fcn.00651b84
mov eax, dword [ebp - 0x6d0]
dec dword [eax + 8]
mov ecx, 2
mov dl, 0x17
mov eax, dword [ebp - 0x6d0]
call fcn.005545d4
mov eax, dword [ebp - 0x6d0]
mov byte [eax + 0x3c], 0
jmp 0x59b9f5
cmp ax, 3
je 0x59b9f5
mov eax, dword [ebp - 8]
dec dword [eax + 0x14]
mov eax, dword [0x6720a0]
test byte [eax], 0x80
je 0x59ba5e
mov eax, dword [0x6720a0]
test byte [eax], 0x20
jne 0x59ba5e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 6
jge 0x59ba5e
mov eax, dword [ebp - 0x6d0]
call fcn.00554f84
cmp ax, 2
jne 0x59ba5e
mov eax, dword [ebp - 0x6d0]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x6d0]
call fcn.00555c00
mov edx, eax
mov eax, dword [ebp - 0x6d0]
mov eax, dword [eax + 0x48]
mov ecx, 9
call fcn.00651b84
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 0x59bac0
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 0x59bab7
mov edx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb0]
call fcn.00651fd4
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.00652408
inc ebx
add esi, 4
cmp bl, 4
jne 0x59ba87
push ebp
call fcn.00569374
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x168], 1
jne 0x59bada
push ebp
call fcn.0056954c
pop ecx
push ebp
call fcn.005697e0
pop ecx
mov eax, dword [ebp - 0x6d8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x59bb12
mov eax, dword [ebp - 0x10]
call fcn.005e5c7c
mov eax, dword [ebp - 0x6d8]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x10]
call fcn.005e6efc
dec ebx
cmp ebx, 0xffffffff
jne 0x59baf0
mov eax, dword [ebp - 0x6d8]
call fcn.00652408
push ebp
call fcn.00598efc
pop ecx
cmp byte [ebp - 0x789], 0
jne 0x59bb56
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x168]
sub eax, 2
jb 0x59bb40
sub eax, 2
jne 0x59bb56
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x604]
cmp dword [eax + 0x18], 0
jle 0x59bb56
push ebp
call fcn.005992f0
pop ecx
push ebp
call fcn.00599760
pop ecx
push ebp
call fcn.00599918
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x43c], 0
je 0x59bb8b
cmp dword [ebp - 0x77c], 0x80000000
je 0x59bb8b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x77c]
mov dword [eax + 0x168], edx
push ebp
call fcn.00599f10
pop ecx
mov eax, dword [0x671c60]
test byte [eax], 8
jne 0x59bba8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x45c], 0
je 0x59bc19
cmp dword [ebp - 0xb8], 0
jge 0x59bbbb
xor eax, eax
mov dword [ebp - 0xb8], eax
jmp 0x59bbe0
lea edx, [ebp - 0x7d8]
mov eax, dword [ebp - 0x10]
call fcn.005c8b68
mov eax, dword [ebp - 0x7c8]
mov edx, dword [ebp - 0xb8]
call fcn.00656b70
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 0x59bc0b
dec edx
mov dword [ebp - 0xb4], edx
jmp 0x59bc29
test ecx, ecx
jge 0x59bc29
xor eax, eax
mov dword [ebp - 0xb4], eax
jmp 0x59bc29
xor eax, eax
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
mov eax, dword [0x6722fc]
cmp byte [eax], 0
je 0x59bc3e
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x90c], edx
push ebp
call fcn.0059a494
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x436], 0
je 0x59bc58
push ebp
call fcn.0059a954
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x174], 0
jne 0x59bcaa
mov eax, dword [ebp - 0x10]
call fcn.005bd7f4
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.00564fb0
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 0x59bef0
cmp byte [0x66d860], 0
je 0x59bccc
mov eax, dword [0x672c9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x25c]
mov eax, dword [0x672c9c]
mov eax, dword [eax]
call fcn.00501fb8
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.00567f54
mov eax, dword [ebp - 0x10]
call fcn.005eebac
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.00567fe0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4d4]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x59bd5a
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.00547324
dec ebx
cmp ebx, 0xffffffff
jne 0x59bd3b
mov eax, dword [ebp - 0x10]
call fcn.005bd7f4
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x45f], 0
jne 0x59bef0
mov eax, dword [0x672cb4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x59bdb6
mov edx, dword [0x672cb4]
test eax, eax
jle 0x59bda3
mov edx, dword [0x672cb4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x171], 0
jmp 0x59bdb6
mov eax, dword [0x672cb4]
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.00564fb0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x14e], 2
jne 0x59bdfe
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 0x59be18
mov dl, 0x28
mov eax, dword [ebp - 0x10]
call fcn.00567f08
push 0
mov al, byte [0x59bfd0]
push eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x10]
call fcn.005c32e0
test ebx, ebx
jne 0x59be40
mov eax, dword [ebp - 0x10]
call fcn.00567fbc
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 0x59bef0
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x59bef0
mov eax, dword [ebp - 0x10]
call fcn.005bcb08
cmp byte [ebp - 9], 0
je 0x59bea7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 0xbc], 0
je 0x59bebd
xor edx, edx
mov eax, dword [ebp - 0xbc]
call fcn.00625670
mov eax, dword [ebp - 0x6cc]
call fcn.004028c0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x4a1], 0
jne 0x59bee6
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov eax, dword [0x673064]
mov eax, dword [eax]
call fcn.006235b8
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4a1], 0
cmp byte [0x66d860], 0
je 0x59bf07
call fcn.005093e8
xor edx, edx
call fcn.005068d4
jmp 0x59bf2a
cmp byte [0x6763f9], 0
jne 0x59bf2a
mov eax, dword [0x6720a0]
test byte [eax], 4
jne 0x59bf2a
mov eax, dword [0x672c9c]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
call fcn.00501f00
mov eax, dword [ebp - 0x76c]
call fcn.004028c0
mov al, byte [ebp - 0x799]
mov byte [0x66d860], 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 0x59bfbc
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