Function at 0x4040f0
Capabilities:
Delete directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44212c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x330
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x33c], edx
mov edi, ecx
call fcn.004033e0
test eax, eax
je 0x404c34
cmp dword [0x45e1e4], 8
mov eax, 0x45e1d0
mov dword [ebp - 0x244], 0
cmovae eax, dword [0x45e1d0]
push eax
call fcn.00427782
add esp, 4
lea ecx, [ebp - 0x244]
mov esi, eax
call fcn.00401980
mov byte [ebp - 0x319], al
mov dword [ebp - 0x320], 1
test al, al
je 0x40419c
cmp esi, dword [ebp - 0x244]
jle 0x40419c
mov ecx, 1
jmp 0x40419e
xor ecx, ecx
mov esi, 0x45e1a0
test al, al
je 0x4041b7
test ecx, ecx
jne 0x4041b7
cmp dword [0x45df74], ecx
je 0x404aa4
call fcn.004017e0
test al, al
jne 0x4041cb
mov dword [edi], 0x64
jmp 0x404c3a
cmp dword [0x45e1b0], 0
ja 0x40427f
xor eax, eax
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x248], 0x300000
mov dword [ebp - 0x244], eax
call fcn.00408d80
test eax, eax
je 0x40426d
push 0x45e1e8
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x298]
call fcn.00406450
add esp, 4
push 0x452f6c
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.004063c0
add esp, 4
mov ecx, esi
push eax
call fcn.00405be0
lea ecx, [ebp - 0x268]
call fcn.004078f0
lea ecx, [ebp - 0x298]
call fcn.004078f0
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
call fcn.004078f0
mov ecx, esi
call fcn.00407f70
test eax, eax
jne 0x404291
mov ecx, esi
call fcn.00407db0
push 0x45e110
mov edx, esi
lea ecx, [ebp - 0x298]
call fcn.00406450
add esp, 4
mov dword [ebp - 0x244], eax
cmp eax, 0x45e248
je 0x4042fe
mov ecx, dword [0x45e25c]
cmp ecx, 8
jb 0x4042d6
inc ecx
push ecx
push dword [0x45e248]
mov ecx, 0x45e248
call fcn.00407820
mov eax, dword [ebp - 0x244]
xor ecx, ecx
mov dword [0x45e25c], 7
mov word [0x45e248], cx
mov ecx, 0x45e248
push eax
mov dword [0x45e258], 0
call fcn.00407620
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x284]
cmp eax, 8
jb 0x404323
inc eax
lea ecx, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
call fcn.00407820
push 0x452c6c
mov edx, 0x45e1b8
lea ecx, [ebp - 0x2b0]
call fcn.004062b0
add esp, 4
push 0x45e1d0
mov edx, eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x2e0]
call fcn.00406530
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x29c]
cmp eax, 8
jb 0x404379
inc eax
lea ecx, [ebp - 0x2b0]
push eax
push dword [ebp - 0x2b0]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x29c], 7
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2a0], 0
mov word [ebp - 0x2b0], ax
call fcn.00407aa0
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x240]
call fcn.00406450
add esp, 4
push 0x452f6c
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x280]
call fcn.004063c0
add esp, 4
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x4043fb
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
cmp byte [ebp - 0x319], al
jne 0x404435
push 0xffffffffffffffff
push eax
push 0x45e1a0
call fcn.00406f70
jmp 0x40447a
call fcn.00407f70
test eax, eax
je 0x40446f
lea ecx, [ebp - 0x280]
call fcn.00408760
lea ecx, [ebp - 0x280]
call fcn.004088e0
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x280]
call fcn.00407db0
lea edx, [ebp - 0x280]
call fcn.004093b0
test eax, eax
jne 0x4044b5
lea ecx, [ebp - 0x280]
mov dword [edi], 0x65
call fcn.004078f0
lea ecx, [ebp - 0x2c8]
call fcn.004078f0
lea ecx, [ebp - 0x2e0]
call fcn.004078f0
jmp 0x404c3a
cmp dword [0x45df74], 0
je 0x404a11
cmp byte [ebp - 0x319], 0
je 0x404a11
push str.ucore.dat
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x298]
call fcn.004062b0
add esp, 4
push 0x200
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xa
push 0
push eax
call fcn.00421ce0
add esp, 0xc
mov dword [ebp - 0x320], 0x1ff
cmp dword [ebp - 0x284], 8
lea eax, [ebp - 0x298]
lea ecx, [ebp - 0x240]
cmovae eax, dword [ebp - 0x298]
push eax
call fcn.00405c60
lea eax, [ebp - 0x320]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x240]
call fcn.00403e10
add esp, 4
lea ecx, [ebp - 0x240]
call fcn.004078f0
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x320], 0
call fcn.004075c0
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x240]
call fcn.00403eb0
add esp, 4
lea ecx, [ebp - 0x240]
call fcn.004077e0
xorps xmm0, xmm0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x244], 0
psrldq xmm0, 8
movd eax, xmm0
and eax, 0xfffffe00
mov dword [ebp - 0x248], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x2a8], xmm0
mov dword [ebp - 0x29c], 0
psrldq xmm0, 8
movd eax, xmm0
and eax, 0xfffffe00
mov dword [ebp - 0x2a0], eax
mov dword [ebp - method.Json::FastWriter.virtual_0], vtable.Json::FastWriter.0
mov dword [ebp - 0x300], 0xf
mov dword [ebp - 0x304], 0
mov byte [ebp - 0x314], 0
mov byte [ebp - 0x2fc], 0
mov edx, 0x45e1b8
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 0x10
jb 0x404653
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x13
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push str.version
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
mov edx, 0x45e1d0
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 0x10
jb 0x4046bd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x15
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push 0x452ebc
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
mov edx, 0x45e1e8
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 0x10
jb 0x404727
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x17
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push str.install_name
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
mov edx, 0x45e110
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 0x10
jb 0x404791
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x19
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push str.exe_name
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
mov edx, 0x45e140
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x14], 0x10
jb 0x4047fb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x1b
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push str.uninstall_name
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
mov edx, 0x45e158
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x404865
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x1d
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push str.info_about
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
mov edx, 0x45e170
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x1e
cmp dword [eax + 0x14], 0x10
jb 0x4048cf
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x1f
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push str.publisher
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
mov edx, 0x45e188
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
mov byte [ebp - 4], 0x20
cmp dword [eax + 0x14], 0x10
jb 0x404939
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413c20
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x21
push eax
sub esp, 8
lea ecx, [ebp - 0x250]
push str.help_link
call fcn.00414840
add esp, 4
mov ecx, eax
call fcn.00413e50
lea ecx, [ebp - 0x238]
call fcn.00413d90
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x11
call fcn.004077e0
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x318]
call fcn.00410330
cmp dword [ebp - 0x2e8], 0
jbe 0x4049c8
cmp dword [ebp - 0x2e4], 0x10
lea ecx, [ebp - 0x2f8]
lea edx, [ebp - 0x298]
cmovae ecx, dword [ebp - 0x2f8]
call fcn.00403dd0
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x320], 0
call fcn.004077e0
lea ecx, [ebp - 0x318]
call fcn.004016a0
lea ecx, [ebp - 0x2a8]
call fcn.00413d90
lea ecx, [ebp - 0x250]
call fcn.00413d90
lea ecx, [ebp - 0x268]
call fcn.004077e0
lea ecx, [ebp - 0x298]
jmp 0x404a6a
push str.resdataevent
mov edx, esi
lea ecx, [ebp - 0x268]
call fcn.004062b0
add esp, 4
mov edx, 0x45e218
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x338]
call fcn.0040e7c0
cmp dword [eax + 0x14], 0x10
jb 0x404a42
mov eax, dword [eax]
lea edx, [ebp - 0x268]
mov ecx, eax
call fcn.00403dd0
lea ecx, [ebp - 0x338]
call fcn.004077e0
call fcn.00402430
call fcn.00401f80
lea ecx, [ebp - 0x268]
call fcn.004078f0
lea ecx, [ebp - 0x280]
call fcn.004078f0
lea ecx, [ebp - 0x2c8]
call fcn.004078f0
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 4], 0xffffffff
call fcn.004078f0
cmp dword [ebp - 0x320], 0
je 0x404c15
xor eax, eax
mov dword [ebp - 0x254], 7
push 0xffffffffffffffff
push eax
push 0x45e248
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], ax
call fcn.00406f70
mov dword [ebp - 4], 0x23
xor eax, eax
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
mov byte [ebp - 4], 0x24
cmp dword [0x45df70], eax
je 0x404b9d
push str._free_login
lea ecx, [ebp - 0x240]
call fcn.00405b90
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00421ce0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00405c60
lea edx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x2c8]
call fcn.00407930
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x27
call fcn.004078f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x240]
call fcn.00406180
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 0x24
call fcn.004078f0
push str.__frdload1
lea ecx, [ebp - 0x240]
call fcn.00405b40
cmp dword [0x45e1b4], 8
lea edx, [ebp - 0x240]
mov ecx, 0x45e248
mov dword [ebp - 0x320], 0xffffffff
cmovae esi, dword [0x45e1a0]
cmp dword [ebp - 0x22c], 8
cmovae edx, dword [ebp - 0x240]
cmp dword [0x45e25c], 8
cmovae ecx, dword [0x45e248]
sub esp, 0x10
push esi
call fcn.00408ce0
add esp, 0x14
lea ecx, [ebp - 0x240]
call fcn.004078f0
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0xffffffff
call fcn.004078f0
mov ecx, dword [ebp - 0x33c]
push 0
push 0x45320e
mov dword [edi], 0
call fcn.004074c0
mov eax, 1
jmp 0x404c3c
mov dword [edi], 0x66
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e8a6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret