Function at 0x413900
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x478acb
mov eax, dword fs:[0]
push eax
sub esp, 0xd10
mov eax, dword [0x49d73c]
xor eax, esp
mov dword [esp + 0xd0c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49d73c]
xor eax, esp
push eax
lea eax, [esp + 0xd24]
mov dword fs:[0], eax
push 0x400
lea eax, [esp + 0x114]
push 0
push eax
mov dword [esp + 0x24], ecx
call fcn.0044a9d0
push 0x400
lea ecx, [esp + 0x728]
push 0
push ecx
call fcn.0044a9d0
mov ebx, dword [esp + 0xd4c]
imul ebx, ebx, 0xc8
add esp, 0x18
lea ebp, [esp + 0x718]
add ebx, 0x478
mov dword [esp + 0x1c], 4
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov edx, ebx
shr edx, 8
push 0x10001
mov byte [esp + 0x115], 3
mov byte [esp + 0x116], 0xf2
mov byte [esp + 0x117], bl
mov byte [esp + 0x118], dl
mov byte [esp + 0x119], 0x32
mov byte [esp + 0x11a], 0
mov byte [esp + 0x11b], 0
mov byte [esp + 0x11c], 0
call fcn.00410f80
push 0x40
lea ecx, [esp + 0x115]
push ecx
push eax
mov dword [0x4a0988], eax
call sub.HidDevice.dll_Ordinal_5
push 0x400
lea edx, [esp + 0x120]
push 0
push edx
call fcn.0044a9d0
mov ecx, dword [0x4a0988]
push 0x40
lea eax, [esp + 0x12d]
push eax
push ecx
mov byte [esp + 0x135], 3
mov byte [esp + 0x136], 0xf2
call sub.HidDevice.dll_Ordinal_6
mov edi, ebp
mov ecx, 0xc
lea esi, [esp + 0x13d]
rep movsd dword es:[edi], dword [esi]
add esp, 0x24
add ebx, 0x32
add ebp, 0x32
sub dword [esp + 0x1c], 1
movsw word es:[edi], word [esi]
jne 0x413990
mov ecx, 0x2f
lea esi, [esp + 0x718]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edx, edx
xor esi, esi
lea eax, [esp + 0x51]
mov bl, 0xff
mov cl, byte [eax + 1]
test cl, cl
jne 0x413a87
cmp byte [eax], cl
jne 0x413a87
cmp byte [eax - 1], cl
je 0x413b0d
cmp cl, bl
jne 0x413a94
cmp byte [eax], bl
jne 0x413a94
cmp byte [eax - 1], bl
je 0x413b0d
test cl, cl
jne 0x413aa1
cmp byte [eax], bl
jne 0x413aa1
cmp byte [eax - 1], bl
je 0x413b0d
mov cl, byte [eax + 4]
inc edx
test cl, cl
jne 0x413ab3
cmp byte [eax + 3], cl
jne 0x413ab3
cmp byte [eax + 2], cl
je 0x413b0d
cmp cl, bl
jne 0x413ac1
cmp byte [eax + 3], bl
jne 0x413ac1
cmp byte [eax + 2], bl
je 0x413b0d
test cl, cl
jne 0x413acf
cmp byte [eax + 3], bl
jne 0x413acf
cmp byte [eax + 2], bl
je 0x413b0d
mov cl, byte [eax + 7]
inc edx
test cl, cl
jne 0x413ae1
cmp byte [eax + 6], cl
jne 0x413ae1
cmp byte [eax + 5], cl
je 0x413b0d
cmp cl, bl
jne 0x413aef
cmp byte [eax + 6], bl
jne 0x413aef
cmp byte [eax + 5], bl
je 0x413b0d
test cl, cl
jne 0x413afd
cmp byte [eax + 6], bl
jne 0x413afd
cmp byte [eax + 5], bl
je 0x413b0d
add esi, 3
inc edx
add eax, 9
cmp esi, 0x3f
jl 0x413a73
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x9598]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
mov dword [esp + 0x20], esp
mov ebx, esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x413b49
cmp eax, dword [esi]
jne 0x413b49
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x413b85
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x413b62
call fcn.00401bd0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0044a440
add esp, 0x10
add edi, 0x10
lea ecx, [esp + 0x30]
mov dword [ebx], edi
call fcn.00405a60
mov dword [esp + 0xd2c], 0
call fcn.00420868
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413bb8
push 0x80004005
call fcn.00401860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xd2c], 1
call fcn.00420868
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413bea
push 0x80004005
call fcn.00401860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0xd34]
push ebp
lea ecx, [esp + 0x20]
push 0x47e2a8
push ecx
mov byte [esp + 0xd38], 2
call fcn.00402f60
add esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x47db50
call fcn.00402480
mov esi, dword [esp + 0x20]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov byte [esp + 0xd34], 3
mov dword [esp + 0x38], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x413c66
cmp eax, dword [esi]
jne 0x413c66
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x413ca2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x413c7f
call fcn.00401bd0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0044a440
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4809a4
mov byte [esp + 0xd3c], 4
call fcn.00402480
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd3c], 2
call fcn.00405b80
cmp dword [esp + 0x14], 0
mov byte [esp + 0xd2c], 5
mov ecx, 0x47db50
je 0x4140e3
mov ebp, dword [esp + 0x34]
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413d1a
test dx, dx
je 0x413d16
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413d1a
add eax, 4
add ecx, 4
test dx, dx
jne 0x413cf4
xor eax, eax
jmp 0x413d1f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x413e5d
mov eax, dword [esp + 0xd34]
push eax
push str.NewMacro
lea ecx, [esp + 0x28]
push str._s_d
push ecx
call fcn.00402f60
mov edi, dword [esp + 0x30]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x28], esp
mov ebp, esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x413d7c
cmp eax, dword [edi]
jne 0x413d7c
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x413db8
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x413d95
call fcn.00401bd0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0044a440
add esp, 0x10
add ebx, 0x10
mov dword [ebp], ebx
push ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov byte [esp + 0xd34], 6
mov dword [esp + 0x38], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x413df0
cmp eax, dword [esi]
jne 0x413df0
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x413e2c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x413e09
call fcn.00401bd0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0044a440
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x4809a4
mov byte [esp + 0xd3c], 7
call fcn.00402480
lea ecx, [esp + 0x38]
mov byte [esp + 0xd38], 5
call fcn.004056a0
jmp 0x413eb2
mov edi, dword [esp + 0x20]
lea eax, [ebp - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x413eb2
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x413ea4
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x413ea4
push eax
call fcn.00401ec0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x413e9b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x413eb2
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.00402150
push 0x49ebc8
lea ecx, [esp + 0xb1c]
push str._sMacroDB_
push ecx
call fcn.00410530
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0xb28]
push eax
lea ecx, [esp + 0x524]
push str._s_s.MSMACRO
push ecx
call fcn.00410530
add esp, 0x1c
lea ecx, [esp + 0x38]
call fcn.004264c7
push 0
lea edx, [esp + 0x514]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xd34], 8
call fcn.0042655f
test eax, eax
je 0x413f21
lea eax, [esp + 0x510]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
lea edx, [esp + 0x514]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00402480
lea ecx, [esp + 0x1c]
call fcn.00405a60
push ecx
lea eax, [esp + 0x514]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0xd34], 9
call fcn.00402480
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MacroFilePath
mov byte [esp + 0xd38], 0xa
call fcn.00402480
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x480258
mov byte [esp + 0xd3c], 0xb
call fcn.00402480
lea ecx, [esp + 0x24]
mov byte [esp + 0xd38], 9
call fcn.004056a0
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Count
call fcn.00402480
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x480258
mov byte [esp + 0xd3c], 0xc
call fcn.00402480
lea ecx, [esp + 0x24]
mov byte [esp + 0xd38], 9
call fcn.00405930
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.LoopTime
call fcn.00402480
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x480258
mov byte [esp + 0xd3c], 0xd
call fcn.00402480
lea ecx, [esp + 0x24]
mov byte [esp + 0xd38], 9
call fcn.00405930
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ebx, [eax + 1]
xor edi, edi
test ebx, ebx
jle 0x4140a5
lea ebp, [esp + 0x50]
jmp 0x414040
push edi
lea ecx, [esp + 0x71c]
push str.MacroSetting__d
push ecx
call fcn.00410530
add esp, 0xc
push 0xbd
push ebp
push ecx
lea edx, [esp + 0x724]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00402480
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x480258
mov byte [esp + 0xd40], 0xe
call fcn.00402480
lea ecx, [esp + 0x28]
mov byte [esp + 0xd3c], 9
call fcn.00405840
inc edi
add ebp, 0xbd
cmp edi, ebx
jl 0x414040
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xd2c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4140cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xd2c], 5
call fcn.004264f0
jmp 0x4141e7
mov eax, dword [esp + 0x34]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41410d
test dx, dx
je 0x414109
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41410d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4140e7
xor eax, eax
jmp 0x414112
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4141e7
push ebp
lea ecx, [esp + 0x20]
push 0x47e2a8
push ecx
call fcn.00402f60
add esp, 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x47db50
call fcn.00402480
mov esi, dword [esp + 0x20]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov byte [esp + 0xd34], 0xf
mov dword [esp + 0x2c], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x41417c
cmp eax, dword [esi]
jne 0x41417c
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4141b8
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x414195
call fcn.00401bd0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0044a440
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4809a4
mov byte [esp + 0xd3c], 0x10
call fcn.00402480
lea ecx, [esp + 0x38]
mov byte [esp + 0xd38], 5
call fcn.004056a0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xd2c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41420f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd2c], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414230
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xd2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414258
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0xd2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xd24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0c]
xor ecx, esp
call fcn.0044a9bf
add esp, 0xd1c
ret 4