Function at 0x421520
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588222
mov eax, dword fs:[0]
push eax
sub esp, 0xb60
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
mov dword [ebp - 0xaf8], ecx
push str.DeviceIDFolderDeleteCheck
push ebx
lea ecx, [ebp - 0xb0c]
mov edi, edx
mov dword [ebp - 0xae8], eax
call fcn.0044ca70
add esp, 0xc
mov edx, dword [ebp + 0xc]
push esi
push edx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xae8]
push eax
push edi
push str.lpDriverName___s__lpHardwareIDName___s__flag___d__lpEnv___s
lea ecx, [ebp - 0xb0c]
push 1
push ecx
call fcn.0044cd10
mov eax, 1
add esp, 0x1c
mov dword [ebp - 0xb10], ebx
mov dword [ebp - 0xb14], ebx
mov dword [ebp - 0xb00], eax
mov dword [ebp - 0xb04], eax
test byte [0x60aea0], al
jne 0x4215e5
or dword [0x60aea0], eax
mov byte [ebp - 4], al
call fcn.00458180
push 0x58b2e0
call fcn.005597b9
add esp, 4
mov byte [ebp - 4], bl
test dword [0x60ac7c], 0x800
je 0x421638
push ebx
push str.return___08x
push 2
lea edx, [ebp - 0xb0c]
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0xb0c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], ebx
jne 0x421da9
lea eax, [ebp - 0xb14]
push eax
lea ecx, [ebp - 0xb10]
push ecx
push ebx
push ebx
push 6
push esi
push ebx
call dword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
mov dword [ebp - 0xb00], eax
cmp eax, ebx
jne 0x421670
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4215f1
mov eax, dword [ebp - 0xb10]
add eax, 0x100
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xafc], eax
cmp eax, ebx
je 0x422659
mov eax, dword [ebp - 0xb10]
lea ecx, [ebp - 0xb14]
push ecx
mov ecx, dword [ebp - 0xafc]
lea edx, [ebp - 0xb10]
push edx
push eax
push ecx
push 6
push esi
push ebx
call dword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
mov dword [ebp - 0xb00], eax
cmp eax, ebx
je 0x421d88
cmp dword [ebp - 0xb14], ebx
je 0x421d88
mov dword [ebp - 0xaec], ebx
jmp 0x4216e0
mov edx, dword [ebp - 0xb14]
cmp dword [ebp - 0xaec], edx
jae 0x421d64
mov esi, dword [ebp - 0xaec]
lea ebx, [esi + esi*4]
shl ebx, 4
add ebx, dword [ebp - 0xafc]
push edi
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x421d7c
mov eax, dword [ebx + 0x48]
push eax
lea ecx, [ebp - 0xaf4]
call fcn.00403340
lea esi, [ebp - 0xaf4]
mov byte [ebp - 4], 2
call fcn.004240f0
mov ecx, dword [ebp - 0xaf4]
mov edx, dword [ebp - 0xae8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0xae8]
call fcn.00404860
mov byte [ebp - 4], 4
mov edi, dword [ebx + 0x1c]
jmp 0x421760
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42188b
test edi, edi
jne 0x421777
xor eax, eax
jmp 0x42178f
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421780
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0xae8]
call fcn.004039c0
mov esi, dword [ebp - 0xae8]
push 0x5c
push esi
call fcn.005589fd
add esp, 8
test eax, eax
jne 0x4217b6
or ecx, 0xffffffff
jmp 0x4217bc
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
inc ecx
sub eax, ecx
push eax
lea eax, [ebp - 0xaf0]
push eax
lea ecx, [ebp - 0xae8]
call fcn.0040a1c0
push eax
lea ecx, [ebp - 0xae8]
mov byte [ebp - 4], 5
call fcn.00404890
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xaf0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42180b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xae8]
xor ecx, ecx
mov word [ebp - 0x890], cx
mov ecx, eax
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421833
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x890]
call fcn.00401d90
mov ebx, dword [ebp - 0xaf8]
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00401ab0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x87c], 8
jb 0x42187b
mov edx, dword [ebp - 0x890]
push edx
call fcn.00461cb5
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
jmp 0x421760
mov eax, dword [ebp - 0xaec]
lea eax, [eax + eax*4]
shl eax, 4
add eax, dword [ebp - 0xafc]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0xaec], eax
test edx, edx
jne 0x4218ae
xor eax, eax
jmp 0x4218c2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4218b3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0xae8]
call fcn.004039c0
mov esi, dword [ebp - 0xae8]
push 0x5c
push esi
call fcn.005589fd
add esp, 8
test eax, eax
jne 0x4218e9
or ecx, 0xffffffff
jmp 0x4218ef
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
inc ecx
sub eax, ecx
push eax
lea edx, [ebp - 0xaf0]
push edx
lea ecx, [ebp - 0xae8]
call fcn.0040a1c0
mov ecx, 7
mov byte [ebp - 4], cl
mov eax, dword [eax]
mov dword [ebp - 0x844], ecx
xor ecx, ecx
mov word [ebp - 0x858], cx
mov ecx, eax
mov dword [ebp - 0x848], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421930
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x858]
call fcn.00401d90
mov ebx, dword [ebp - 0xaf8]
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00401ab0
cmp dword [ebp - 0x844], 8
jb 0x421974
mov edx, dword [ebp - 0x858]
push edx
call fcn.00461cb5
add esp, 4
xor eax, eax
mov word [ebp - 0x858], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xaf0]
mov edi, 7
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x848], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xaec]
mov edx, dword [ecx + 0x10]
cmp edx, ebx
jne 0x4219c7
xor eax, eax
jmp 0x4219df
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4219d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0xae8]
call fcn.004039c0
mov esi, dword [ebp - 0xae8]
push 0x5c
push esi
call fcn.005589fd
add esp, 8
cmp eax, ebx
jne 0x421a06
or ecx, 0xffffffff
jmp 0x421a0c
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
inc ecx
sub eax, ecx
push eax
lea edx, [ebp - 0xaf0]
push edx
lea ecx, [ebp - 0xae8]
call fcn.0040a1c0
mov byte [ebp - 4], 9
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp - 0x858], cx
mov ecx, eax
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x848], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x421a45
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x858]
call fcn.00401d90
mov ebx, dword [ebp - 0xaf8]
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00401ab0
cmp dword [ebp - 0x844], 8
jb 0x421a89
mov edx, dword [ebp - 0x858]
push edx
call fcn.00461cb5
add esp, 4
xor eax, eax
mov word [ebp - 0x858], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xaf0]
mov edi, 7
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x848], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421acb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xaec]
mov edx, dword [ecx + 0x18]
cmp edx, ebx
jne 0x421adc
xor eax, eax
jmp 0x421af0
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421ae1
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0xae8]
call fcn.004039c0
mov esi, dword [ebp - 0xae8]
push 0x5c
push esi
call fcn.005589fd
add esp, 8
cmp eax, ebx
jne 0x421b17
or ecx, 0xffffffff
jmp 0x421b1d
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
inc ecx
sub eax, ecx
push eax
lea edx, [ebp - 0xaf0]
push edx
lea ecx, [ebp - 0xae8]
call fcn.0040a1c0
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp - 0x858], cx
mov ecx, eax
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x848], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x421b56
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x858]
call fcn.00401d90
mov ebx, dword [ebp - 0xaf8]
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00401ab0
cmp dword [ebp - 0x844], 8
jb 0x421b9a
mov edx, dword [ebp - 0x858]
push edx
call fcn.00461cb5
add esp, 4
xor eax, eax
mov word [ebp - 0x858], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xaf0]
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421bdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xaec]
mov edx, dword [ecx + 0xc]
cmp edx, ebx
jne 0x421bec
xor eax, eax
jmp 0x421c00
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421bf1
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0xae8]
call fcn.004039c0
mov edi, dword [ebp - 0xae8]
push 0x5c
push edi
call fcn.005589fd
add esp, 8
cmp eax, ebx
jne 0x421c27
or ecx, 0xffffffff
jmp 0x421c2d
sub eax, edi
sar eax, 1
mov ecx, eax
mov eax, dword [edi - 0xc]
inc ecx
sub eax, ecx
push eax
lea edx, [ebp - 0xaf0]
push edx
lea ecx, [ebp - 0xae8]
call fcn.0040a1c0
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp - 0x858], cx
mov ecx, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x421c70
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x858]
call fcn.00401d90
mov ebx, dword [ebp - 0xaf8]
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00401ab0
cmp dword [ebp - 0x844], 8
jb 0x421cb4
mov edx, dword [ebp - 0x858]
push edx
call fcn.00461cb5
add esp, 4
xor eax, eax
mov word [ebp - 0x858], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xaf0]
add eax, 0xfffffff0
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421cf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 3
jmp 0x421d1e
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xaf4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xafc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422659
inc esi
mov dword [ebp - 0xaec], esi
jmp 0x4216e0
mov edx, dword [ebp - 0xafc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push str.return___08x
push 2
lea eax, [ebp - 0xb0c]
push eax
jmp 0x421600
push 0x208
lea ecx, [ebp - 0x224]
push ebx
push ecx
call fcn.0055ca80
add esp, 0xc
push 0x208
lea edx, [ebp - 0x634]
push ebx
push edx
call fcn.0055ca80
add esp, 0xc
push 0x250
lea eax, [ebp - 0xae4]
push ebx
push eax
call fcn.0055ca80
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x42c]
push ebx
push ecx
call fcn.0055ca80
add esp, 0xc
push 0x208
lea edx, [ebp - 0x83c]
push ebx
push edx
call fcn.0055ca80
add esp, 0xc
lea esi, [ebp - 0x634]
call fcn.00418940
mov eax, dword [ebp - 0xae8]
push eax
mov ecx, esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
lea edx, [ebp - 0x42c]
push str._s_s
push edx
call esi
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x224]
push 0x5b8ed8
push ecx
call esi
add esp, 0x1c
mov dword [ebp - 0xafc], 1
mov dword [ebp - 0xb50], ebx
mov dword [ebp - 0xb4c], ebx
mov dword [ebp - 0xb48], ebx
mov dword [ebp - 0xb38], ebx
mov dword [ebp - 0xb34], ebx
mov dword [ebp - 0xb30], ebx
mov byte [ebp - 4], 0x11
push 0x48
mov dword [ebp - 0xb1c], ebx
call fcn.00461c7b
add esp, 4
cmp eax, ebx
je 0x422693
mov dword [ebp - 0xb20], eax
mov dword [eax], eax
mov eax, dword [ebp - 0xb20]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0xb20]
mov dword [eax + 8], eax
mov edx, dword [ebp - 0xb20]
mov byte [edx + 0x44], 1
mov eax, dword [ebp - 0xb20]
mov byte [eax + 0x45], 1
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xb20]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0xb24]
call fcn.00429340
mov eax, dword [ebp - 0xb20]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0xb20]
mov dword [eax], eax
mov eax, dword [ebp - 0xb20]
mov dword [eax + 8], eax
lea eax, [ebp - 0xb50]
push eax
lea ecx, [ebp - 0xb24]
mov dword [ebp - 0xb1c], ebx
call fcn.00423870
mov ecx, dword [ebp - 0xb4c]
mov esi, dword [ebp - 0xb50]
sub ecx, esi
mov edi, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add esp, 4
add ecx, edx
mov dword [ebp - 0xaf0], edi
je 0x4223f8
mov eax, esi
mov dword [ebp - 0xaec], eax
cmp eax, dword [ebp - 0xb4c]
je 0x4223ce
push ebx
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], ebx
mov word [ebp - 0x890], dx
call fcn.00401b90
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x87c], 8
mov eax, dword [ebp - 0x890]
jae 0x421f9e
lea eax, [ebp - 0x890]
push eax
mov eax, dword [ebp - 0xae8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42239e
mov esi, dword [ebp - 0xae8]
mov dword [ebp - 0x864], eax
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x860], 7
mov word [ebp - 0x874], cx
lea edx, [eax + 2]
jmp 0x421fe0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421fe0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x874]
call fcn.00401d90
mov edx, esi
push edx
lea eax, [ebp - 0xb58]
push eax
lea ecx, [ebp - 0xb24]
push ecx
mov byte [ebp - 4], 0x14
call fcn.00429140
mov ebx, dword [ebp - 0xb58]
mov edx, dword [ebp - 0xb54]
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x860], 8
mov dword [ebp - 0xb40], ebx
mov dword [ebp - 0xb3c], edx
jb 0x422050
mov eax, dword [ebp - 0x874]
push eax
call fcn.00461cb5
add esp, 4
jmp 0x422050
cmp ebx, dword [ebp - 0xb3c]
je 0x4221fd
xor ecx, ecx
push ecx
lea edx, [ebx + 0x28]
mov word [ebp - 0x874], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x874]
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x864], 0
call fcn.00401b90
mov byte [ebp - 4], 0x15
mov esi, dword [ebp - 0xb38]
mov edi, dword [ebp - 0xb34]
cmp esi, edi
je 0x422148
xor eax, eax
push eax
mov word [ebp - 0x858], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
call fcn.00401b90
cmp dword [ebp - 0x844], 8
mov ecx, dword [ebp - 0x858]
jae 0x4220e6
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x860], 8
mov eax, dword [ebp - 0x874]
jae 0x4220fb
lea eax, [ebp - 0x874]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42212c
cmp dword [ebp - 0x844], 8
jb 0x42211f
mov ecx, dword [ebp - 0x858]
push ecx
call fcn.00461cb5
add esp, 4
add esi, 0x1c
cmp esi, edi
jne 0x4220a4
jmp 0x422148
cmp dword [ebp - 0x844], 8
jb 0x422144
mov edx, dword [ebp - 0x858]
push edx
call fcn.00461cb5
add esp, 4
cmp esi, edi
jne 0x422184
lea ecx, [ebp - 0x874]
lea edi, [ebp - 0xb38]
mov byte [ebp - 4], 0x16
call fcn.0040b0b0
mov dword [ebp - 4], 0x15
jmp 0x422184
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x860], 8
jb 0x4221a0
mov eax, dword [ebp - 0x874]
push eax
call fcn.00461cb5
add esp, 4
cmp byte [ebx + 0x45], 0
jne 0x422050
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x45], 0
jne 0x4221d7
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x4221ca
jmp 0x4221c0
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x4221c0
mov ebx, ecx
mov dword [ebp - 0xb40], ebx
jmp 0x422050
mov eax, dword [ebx + 4]
cmp byte [eax + 0x45], 0
jne 0x4221f0
cmp ebx, dword [eax + 8]
jne 0x4221f0
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x4221e0
mov ebx, eax
mov dword [ebp - 0xb40], ebx
jmp 0x422050
mov eax, dword [ebp - 0xb38]
mov dword [ebp - 0xaf4], eax
cmp eax, dword [ebp - 0xb34]
je 0x42239e
mov edx, dword [ebp - 0xaf4]
xor ecx, ecx
push ecx
mov word [ebp - 0x874], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x874]
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x864], 0
call fcn.00401b90
mov eax, dword [ebp - 0xaf8]
mov byte [ebp - 4], 0x18
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x422367
mov edi, 8
xor ebx, ebx
xor eax, eax
push ebx
mov word [ebp - 0x858], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
call fcn.00401b90
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x858]
cmp dword [ebp - 0x844], edi
jae 0x4222a5
lea ecx, [ebp - 0x858]
mov eax, dword [ebp - 0x874]
cmp dword [ebp - 0x860], edi
jae 0x4222b9
lea eax, [ebp - 0x874]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4222f4
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x844], edi
jb 0x4222e0
mov ecx, dword [ebp - 0x858]
push ecx
call fcn.00461cb5
add esp, 4
mov edx, dword [ebp - 0xaf8]
add esi, 0x1c
cmp esi, dword [edx + 4]
jne 0x422264
jmp 0x422367
mov ecx, dword [ebp - 0xb28]
mov ebx, dword [ebp - 0xaf8]
mov eax, dword [ebx + 4]
push ecx
push eax
lea ecx, [esi + 0x1c]
mov eax, esi
call fcn.00406df0
mov edi, dword [ebx + 4]
lea esi, [edi - 0x1c]
add esp, 8
cmp esi, edi
je 0x42234b
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x422331
mov eax, dword [esi]
push eax
call fcn.00461cb5
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, edi
jne 0x422320
add dword [ebx + 4], 0xffffffe4
cmp dword [ebp - 0x844], 8
jb 0x422367
mov eax, dword [ebp - 0x858]
push eax
call fcn.00461cb5
add esp, 4
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x860], 8
jb 0x422383
mov ecx, dword [ebp - 0x874]
push ecx
call fcn.00461cb5
add esp, 4
mov eax, dword [ebp - 0xaf4]
add eax, 0x1c
mov dword [ebp - 0xaf4], eax
cmp eax, dword [ebp - 0xb34]
jne 0x422215
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x87c], 8
jb 0x4223ba
mov edx, dword [ebp - 0x890]
push edx
call fcn.00461cb5
add esp, 4
add dword [ebp - 0xaec], 0x1c
mov eax, dword [ebp - 0xaec]
xor ebx, ebx
jmp 0x421f50
mov ecx, dword [ebp - 0xb34]
sub ecx, dword [ebp - 0xb38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x422403
cmp dword [ebp - 0xaf0], 1
jmp 0x4223fb
cmp edi, 1
jne 0x422403
mov dword [ebp - 0xafc], ebx
lea ecx, [ebp - 0xae4]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xaf4], eax
cmp eax, 0xffffffff
je 0x4225a0
cmp dword [ebp - 0xb00], ebx
je 0x422591
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x422440
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xab8]
push eax
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x224]
push str._s_s
push edx
call esi
add esp, 0x10
cmp dword [ebp - 0xafc], 1
jne 0x42255c
lea eax, [ebp - 0xab8]
push eax
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x83c]
push str._s3_s
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4224ae
lea ecx, [ebp - 0x224]
push ecx
jmp 0x422563
mov eax, dword [ebp - 0xaf8]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x42256f
nop
push ebx
xor edx, edx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], ebx
mov word [ebp - 0x890], dx
call fcn.00401b90
mov eax, dword [ebp - 0x890]
mov edi, 8
cmp dword [ebp - 0x87c], edi
jae 0x422502
lea eax, [ebp - 0x890]
lea ecx, [ebp - 0xab8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42252b
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x42252b
mov dword [ebp - 0xb04], ebx
cmp dword [ebp - 0x87c], edi
jb 0x422542
mov eax, dword [ebp - 0x890]
push eax
call fcn.00461cb5
add esp, 4
mov ecx, dword [ebp - 0xaf8]
add esi, 0x1c
cmp esi, dword [ecx + 4]
jne 0x4224c0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42256f
lea edx, [ebp - 0x224]
push edx
call edi
cmp eax, ebx
jne 0x42256f
mov dword [ebp - 0xb04], ebx
mov ecx, dword [ebp - 0xaf4]
lea eax, [ebp - 0xae4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0xb00], eax
cmp eax, ebx
jne 0x422440
mov edx, dword [ebp - 0xaf4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4225aa
mov dword [ebp - 0xb04], 1
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0xb20]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0xb28]
lea esi, [ebp - 0xb24]
call fcn.00429520
mov ecx, dword [ebp - 0xb20]
push ecx
call fcn.00461cb5
mov ebx, dword [ebp - 0xb38]
add esp, 4
test ebx, ebx
je 0x422635
mov edi, dword [ebp - 0xb34]
mov esi, ebx
cmp ebx, edi
je 0x42262c
cmp dword [esi + 0x14], 8
jb 0x422612
mov eax, dword [esi]
push eax
call fcn.00461cb5
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, edi
jne 0x422601
push ebx
call fcn.00461cb5
add esp, 4
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0xb50]
test esi, esi
je 0x422659
mov edi, dword [ebp - 0xb4c]
mov eax, esi
call fcn.00402240
push esi
call fcn.00461cb5
add esp, 4
mov eax, dword [ebp - 0xb00]
push eax
push str.return___08x
lea ecx, [ebp - 0xb0c]
push 2
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0xb0c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov eax, dword [ebp - 0xb04]
jmp 0x42161c
lea edx, [ebp - 0xb28]
push edx
lea ecx, [ebp - 0xb6c]
mov dword [ebp - 0xb28], ebx
call fcn.00556534
push 0x5db11c
lea eax, [ebp - 0xb6c]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0055b426
int3