Function at 0x40af00
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x512820
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x214c
call fcn.005053d0
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x2148], eax
push ebx
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x2160]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x1c], ebx
push 0x206
lea ecx, [esp + 0xf52]
xor eax, eax
push ebx
mov dword [esp + 0x2170], ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0xf58], ax
call fcn.004f2770
mov edi, fcn.004ed893
mov esi, fcn.004ee443
mov edx, fcn.004ed7b6
mov ecx, 0x8000
mov eax, vtable.t_heap.0
add esp, 0xc
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x60], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x40], 1
mov byte [esp + 0x2168], 2
call fcn.0041d570
cmp byte [eax + 0x494], bl
je 0x40aff1
add eax, 0x384
jmp 0x40aff7
mov eax, dword [eax + 0x380]
add eax, 4
push eax
lea edx, [esp + 0xf50]
push 0x104
push edx
call fcn.004ee6af
add esp, 0xc
push 0x5463d8
lea eax, [esp + 0xf50]
push 0x104
push eax
call fcn.004eef2d
add esp, 0xc
push str.SogouPY
lea ecx, [esp + 0xf50]
push 0x104
push ecx
call fcn.004eef2d
add esp, 0xc
lea ecx, [esp + 0x46c]
call fcn.004174b0
lea eax, [esp + 0xf4c]
lea edx, [esp + 0x46c]
call fcn.00417710
lea ecx, [esp + 0x46c]
mov byte [esp + 0x2168], 4
call fcn.0041e510
test al, al
jne 0x40b130
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x474]
call fcn.0041f2b0
test al, al
jne 0x40b130
mov dword [esp + 0x46c], vtable.t_str.0
cmp byte [esp + 0x588], al
jne 0x40b0c8
mov eax, dword [esp + 0x474]
lea ecx, [esp + 0x478]
cmp eax, ecx
je 0x40b0c8
push eax
call fcn.004ed7b6
add esp, 4
mov byte [esp + 0x2168], 1
mov eax, dword [esp + 0x34]
mov esi, vtable.allocator_unsigned_char__class_TAllocDefault_.0
mov dword [esp + 0x24], esi
cmp eax, ebx
je 0x40b0f8
mov edx, dword [eax + 4]
push eax
mov dword [esp + 0x38], edx
call dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, ebx
jne 0x40b0e1
mov byte [esp + 0x2168], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], esi
cmp eax, ebx
je 0x40b127
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x58], ecx
call dword [esp + 0x54]
mov eax, dword [esp + 0x58]
add esp, 4
cmp eax, ebx
jne 0x40b110
mov dword [esp + 0x54], ebx
jmp 0x40bf7f
lea ecx, [esp + 0x594]
call fcn.0041dc00
lea ecx, [esp + 0x344]
call fcn.0041dc00
cmp byte [esp + 0x588], 0
lea eax, [esp + 0x478]
jne 0x40b160
mov eax, dword [esp + 0x474]
add eax, 4
lea edx, [esp + 0x594]
call fcn.00417710
cmp byte [esp + 0x588], 0
lea eax, [esp + 0x478]
jne 0x40b187
mov eax, dword [esp + 0x474]
add eax, 4
lea edx, [esp + 0x344]
call fcn.00417710
lea ecx, [esp + 0x21c]
call fcn.004174b0
mov eax, str.ThirdPassport.ini
lea edx, [esp + 0x21c]
call fcn.00417710
cmp byte [esp + 0x338], 0
lea eax, [esp + 0x228]
jne 0x40b1cb
mov eax, dword [esp + 0x224]
mov esi, 0x2e
lea ecx, [esp + 0x594]
cmp word [eax + 4], si
jne 0x40b1ec
lea edx, [esp + 0x21c]
push edx
call fcn.0041f1b0
jmp 0x40b1f9
lea eax, [esp + 0x21c]
push eax
call fcn.0041e2f0
cmp byte [esp + 0x338], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x21c], edi
jne 0x40b22a
mov eax, dword [esp + 0x224]
lea ecx, [esp + 0x228]
cmp eax, ecx
je 0x40b22a
push eax
call fcn.004ed7b6
add esp, 4
lea ecx, [esp + 0x21c]
call fcn.004174b0
mov eax, str.ThirdPassportIcon
lea edx, [esp + 0x21c]
call fcn.00417710
mov byte [esp + 0x2168], 6
cmp byte [esp + 0x338], 0
lea eax, [esp + 0x228]
jne 0x40b267
mov eax, dword [esp + 0x224]
lea ecx, [esp + 0x344]
cmp word [eax + 4], si
jne 0x40b283
lea edx, [esp + 0x21c]
push edx
call fcn.0041f1b0
jmp 0x40b290
lea eax, [esp + 0x21c]
push eax
call fcn.0041e2f0
cmp byte [esp + 0x338], 0
mov dword [esp + 0x21c], edi
jne 0x40b2bc
mov eax, dword [esp + 0x224]
lea ecx, [esp + 0x228]
cmp eax, ecx
je 0x40b2bc
push eax
call fcn.004ed7b6
add esp, 4
lea ecx, [esp + 0x344]
call fcn.0041e510
test al, al
jne 0x40b3d5
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34c]
call fcn.0041f2b0
test al, al
jne 0x40b3d5
mov dword [esp + 0x344], edi
cmp byte [esp + 0x460], al
jne 0x40b315
mov eax, dword [esp + 0x34c]
lea ecx, [esp + 0x350]
cmp eax, ecx
je 0x40b315
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x6b0], 0
mov dword [esp + 0x594], edi
jne 0x40b341
mov eax, dword [esp + 0x59c]
lea edx, [esp + 0x5a0]
cmp eax, edx
je 0x40b341
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x588], 0
mov dword [esp + 0x46c], edi
jne 0x40b36d
mov eax, dword [esp + 0x474]
lea ecx, [esp + 0x478]
cmp eax, ecx
je 0x40b36d
push eax
call fcn.004ed7b6
add esp, 4
mov byte [esp + 0x2168], 1
mov eax, dword [esp + 0x34]
mov esi, vtable.allocator_unsigned_char__class_TAllocDefault_.0
mov dword [esp + 0x24], esi
cmp eax, ebx
je 0x40b39d
mov edx, dword [eax + 4]
push eax
mov dword [esp + 0x38], edx
call dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, ebx
jne 0x40b386
mov byte [esp + 0x2168], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], esi
cmp eax, ebx
je 0x40b3cc
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x58], ecx
call dword [esp + 0x54]
mov eax, dword [esp + 0x58]
add esp, 4
cmp eax, ebx
jne 0x40b3b5
mov dword [esp + 0x54], ebx
jmp 0x40bf7f
cmp byte [esp + 0x6b0], 0
lea eax, [esp + 0x5a0]
jne 0x40b3ed
mov eax, dword [esp + 0x59c]
lea edx, [esp + 0xefc]
push edx
add eax, 4
push eax
call fcn.004eea16
add esp, 8
cmp eax, ebx
jne 0x40b4b8
test dword [esp + 0xf02], 0x4000
jne 0x40b4b8
cmp byte [esp + 0x6b0], 0
lea eax, [esp + 0x5a0]
jne 0x40b432
mov eax, dword [esp + 0x59c]
add eax, 4
push eax
lea edi, [esp + 0x20]
lea ecx, [esp + 0x48]
call fcn.00422ee0
test al, al
je 0x40b4b8
push 0x546620
push 0x546620
lea ecx, [esp + 0x4c]
call fcn.00422d40
cmp eax, ebx
je 0x40b4b8
mov ecx, 0x546628
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b489
cmp dx, bx
je 0x40b485
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b489
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40b463
xor eax, eax
jmp 0x40b48e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40b4b8
push str.version
push str.setting
lea ecx, [esp + 0x4c]
call fcn.00422d40
cmp eax, ebx
je 0x40b4b8
push eax
call fcn.004ed02b
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x40b4bc
mov dword [esp + 0x18], ebx
lea esi, [esp + 0x90c]
mov byte [esp + 0x13], 0
call fcn.0042d8f0
lea ecx, [esp + 0x7e4]
call fcn.004174b0
lea ecx, [esp + 0x6bc]
call fcn.004174b0
cmp byte [esp + 0x588], 0
lea eax, [esp + 0x478]
jne 0x40b4fd
mov eax, dword [esp + 0x474]
add eax, 4
lea edx, [esp + 0x6bc]
call fcn.00417710
lea ecx, [esp + 0x21c]
call fcn.004174b0
mov eax, str.ThirdPassport.download
lea edx, [esp + 0x21c]
call fcn.00417710
cmp byte [esp + 0x338], 0
lea eax, [esp + 0x228]
jne 0x40b541
mov eax, dword [esp + 0x224]
cmp word [eax + 4], 0x2e
jne 0x40b55e
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x6c0]
call fcn.0041f1b0
jmp 0x40b572
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x6c0]
call fcn.0041e2f0
cmp byte [esp + 0x338], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40b5a2
mov eax, dword [esp + 0x224]
lea edx, [esp + 0x228]
cmp eax, edx
je 0x40b5a2
push eax
call fcn.004ed7b6
add esp, 4
mov esi, dword [esp + 0x18]
push esi
push str.http:__config.pinyin.sogou.com_passport_getconf.php_version
push 0x546670
lea edi, [esp + 0x7f0]
mov byte [esp + 0x2174], 0xe
call fcn.00417ef0
mov eax, edi
add esp, 0xc
push eax
call fcn.0042d1b0
add esp, 4
cmp byte [esp + 0x900], 0
lea eax, [esp + 0x7f0]
jne 0x40b5eb
mov eax, dword [esp + 0x7ec]
add eax, 4
lea edx, [esp + 0x90c]
call fcn.00417710
cmp byte [esp + 0x7d8], 0
lea eax, [esp + 0x6c8]
jne 0x40b612
mov eax, dword [esp + 0x6c4]
add eax, 4
lea edx, [esp + 0xa30]
call fcn.00417710
lea eax, [esp + 0x90c]
mov dword [esp + 0xb60], 0x54623c
mov dword [esp + 0xb54], 0x14
mov dword [esp + 0xb5c], 2
mov dword [esp + 0xb58], ebx
call fcn.0042e180
test al, al
je 0x40b729
cmp byte [esp + 0x7d8], 0
lea eax, [esp + 0x6c8]
jne 0x40b675
mov eax, dword [esp + 0x6c4]
add eax, 4
push eax
lea edi, [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.00422ee0
test al, al
je 0x40b712
push 0x546620
push 0x546620
lea ecx, [esp + 0x2c]
call fcn.00422d40
cmp eax, ebx
je 0x40b712
mov ecx, 0x546628
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b6d6
cmp dx, bx
je 0x40b6d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b6d6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40b6b0
xor eax, eax
jmp 0x40b6db
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40b712
push str.version
push str.setting
lea ecx, [esp + 0x2c]
call fcn.00422d40
cmp eax, ebx
je 0x40b712
push eax
call fcn.004ed02b
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x40b716
cmp eax, esi
jle 0x40b716
mov byte [esp + 0x13], 1
jmp 0x40b729
mov dword [esp + 0x14], ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x6c8]
call fcn.0041ed80
cmp byte [esp + 0x13], 0
lea esi, [esp + 0x44]
push ebx
jne 0x40b7da
mov edi, dword [esp + 0x1c]
push ebx
cmp edi, ebx
jne 0x40b7c3
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x5a0]
call fcn.0041ed80
lea esi, [esp + 0x344]
call fcn.0041f150
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x6c8]
call fcn.0041ed80
lea ecx, [esp + 0x6bc]
call fcn.00417650
lea ecx, [esp + 0x7e4]
call fcn.00417650
lea eax, [esp + 0x90c]
call fcn.00411620
lea ecx, [esp + 0x344]
call fcn.00417650
lea ecx, [esp + 0x594]
call fcn.00417650
lea ecx, [esp + 0x46c]
call fcn.00417650
jmp 0x40bf50
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x6c8]
call fcn.0041ed80
mov dword [esp + 0x68], edi
jmp 0x40b80f
lea edx, [esp + 0x598]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x6c8]
call fcn.0041f790
test al, al
jne 0x40b803
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
jmp 0x40b76a
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x24]
mov dword [esp + 0x68], edx
push 0x546680
push str.setting
mov ecx, esi
call fcn.00422d40
push eax
call fcn.004ed02b
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x70], edi
jle 0x40b776
push 0x4c
lea eax, [esp + 0x7c]
push ebx
push eax
mov dword [esp + 0x80], ebx
call fcn.004f2770
xor ecx, ecx
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
jle 0x40bba6
jmp 0x40b866
mov ecx, dword [esp + 0x18]
cmp ecx, 0x14
jge 0x40bba6
xor eax, eax
push ecx
xor edx, edx
mov word [esp + 0xf00], dx
push 0x545c30
push str._s_d
lea edx, [esp + 0xf08]
mov dword [esp + 0xf0a], eax
mov dword [esp + 0xf0e], eax
mov dword [esp + 0xf12], eax
mov dword [esp + 0xf16], eax
mov dword [esp + 0xf1a], eax
mov dword [esp + 0xf1e], eax
mov dword [esp + 0xf22], eax
mov dword [esp + 0xf26], eax
mov dword [esp + 0xf2a], eax
mov word [esp + 0xf2e], ax
call fcn.00411af0
add esp, 0xc
push str.name
lea eax, [esp + 0xf00]
push eax
mov ecx, esi
call fcn.00422d40
push str.passporturl
lea ecx, [esp + 0xf00]
push ecx
mov ecx, esi
mov edi, eax
call fcn.00422d40
push str.iconurl
lea edx, [esp + 0xf00]
push edx
mov ecx, esi
mov ebx, eax
call fcn.00422d40
mov dword [esp + 0x64], eax
push 0x546298
lea eax, [esp + 0xf00]
push eax
mov ecx, esi
call fcn.00422d40
mov dword [esp + 0x6c], eax
test edi, edi
je 0x40bb8f
test ebx, ebx
je 0x40bb8f
cmp dword [esp + 0x64], 0
je 0x40bb8f
test eax, eax
je 0x40bb8f
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x74], edi
inc eax
lea ecx, [esp + 0x21c]
mov dword [esp + 0x14], eax
call fcn.0041dc00
lea ecx, [esp + 0xb84]
call fcn.0041dc00
lea ecx, [esp + 0x344]
push ecx
lea ecx, [esp + 0x220]
mov byte [esp + 0x216c], 0x10
call fcn.0041e350
lea edx, [esp + 0x344]
push edx
lea ecx, [esp + 0xb88]
call fcn.0041e350
push edi
lea eax, [esp + 0xf50]
push str._s.png
push eax
call fcn.00411b10
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xf60]
push ecx
lea ecx, [esp + 0x110]
call fcn.0041dc60
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0x220]
call fcn.0041e2c0
lea ecx, [esp + 0xf8]
call fcn.00417650
push edi
lea eax, [esp + 0xf50]
push str._s.download
push eax
call fcn.00411b10
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xf60]
push ecx
lea ecx, [esp + 0x110]
call fcn.0041dc60
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0xb88]
call fcn.0041e2c0
lea ecx, [esp + 0xf8]
call fcn.00417650
lea ecx, [esp + 0x21c]
call fcn.0041e4d0
test al, al
je 0x40bad0
lea eax, [esp + 0xf2c]
push eax
lea ecx, [esp + 0x220]
lea edi, [esp + 0x20]
call fcn.00424560
add esp, 4
test al, al
je 0x40bad0
mov edi, dword [esp + 0x6c]
lea ebx, [esp + 0xf3c]
call fcn.004248a0
test al, al
je 0x40bad0
mov eax, 0x10
xor ecx, ecx
jmp 0x40bab0
mov edx, dword [esp + ecx + 0xf3c]
cmp edx, dword [esp + ecx + 0xf2c]
jne 0x40bad0
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x40bab0
jmp 0x40bb77
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
push str._s_version_08d
lea edi, [esp + 0x7f0]
call fcn.00417ef0
mov edx, edi
add esp, 0xc
push edx
call fcn.0042d1b0
add esp, 4
mov eax, edi
lea edx, [esp + 0x90c]
call fcn.004176e0
lea ecx, [esp + 0xb84]
call fcn.00417d60
push eax
lea ecx, [esp + 0xa34]
call fcn.00417700
lea eax, [esp + 0x90c]
mov dword [esp + 0xb60], 0x54623c
mov dword [esp + 0xb54], 0x14
mov dword [esp + 0xb5c], 2
mov dword [esp + 0xb58], 0
call fcn.0042e180
test al, al
je 0x40bb77
push 0
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xb90]
call fcn.0041f790
lea ecx, [esp + 0xb84]
call fcn.00417650
lea ecx, [esp + 0x21c]
call fcn.00417650
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
jl 0x40b862
cmp byte [esp + 0x460], 0
lea eax, [esp + 0x350]
jne 0x40bbbe
mov eax, dword [esp + 0x34c]
lea edx, [esp + 0xc4]
push edx
add eax, 4
push eax
call fcn.004eea16
add esp, 8
test eax, eax
je 0x40bcc5
cmp byte [esp + 0x7d8], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x6bc], esi
jne 0x40bc0b
mov eax, dword [esp + 0x6c4]
lea ecx, [esp + 0x6c8]
cmp eax, ecx
je 0x40bc0b
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x900], 0
mov dword [esp + 0x7e4], esi
jne 0x40bc37
mov eax, dword [esp + 0x7ec]
lea edx, [esp + 0x7f0]
cmp eax, edx
je 0x40bc37
push eax
call fcn.004ed7b6
add esp, 4
lea eax, [esp + 0x90c]
call fcn.00411620
cmp byte [esp + 0x460], 0
mov dword [esp + 0x344], esi
jne 0x40bc6f
mov eax, dword [esp + 0x34c]
lea ecx, [esp + 0x350]
cmp eax, ecx
je 0x40bc6f
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x6b0], 0
mov dword [esp + 0x594], esi
jne 0x40bc9b
mov eax, dword [esp + 0x59c]
lea edx, [esp + 0x5a0]
cmp eax, edx
je 0x40bc9b
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x588], 0
mov dword [esp + 0x46c], esi
jne 0x40bf50
mov eax, dword [esp + 0x474]
lea ecx, [esp + 0x478]
cmp eax, ecx
jmp 0x40bf45
test dword [esp + 0xca], 0x4000
je 0x40be63
cmp byte [esp + 0x460], 0
lea eax, [esp + 0x350]
jne 0x40bcee
mov eax, dword [esp + 0x34c]
add eax, 4
push eax
push str._s.
lea edx, [esp + 0x115c]
call fcn.00411b30
add esp, 8
lea edx, [esp + 0xcac]
push edx
lea eax, [esp + 0x1158]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40be63
mov ecx, 0x546720
lea eax, [esp + 0xcd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bd59
test dx, dx
je 0x40bd55
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bd59
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bd33
xor eax, eax
jmp 0x40bd5e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40be45
mov ecx, 0x546724
lea eax, [esp + 0xcd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bd98
test dx, dx
je 0x40bd94
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bd98
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bd72
xor eax, eax
jmp 0x40bd9d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40be45
cmp byte [esp + 0x460], 0
lea eax, [esp + 0x350]
jne 0x40bdbd
mov eax, dword [esp + 0x34c]
lea ecx, [esp + 0xcd8]
push ecx
add eax, 4
push eax
push 0x54672c
lea edx, [esp + 0x1160]
call fcn.00411b30
add esp, 0xc
test byte [esp + 0xcac], 0x10
je 0x40bdf7
lea edx, [esp + 0x1154]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40be45
xor esi, esi
test ebx, ebx
jle 0x40be37
lea ecx, [ecx]
mov eax, dword [esp + esi*4 + 0x74]
push eax
push str._s.png
lea edx, [esp + 0x195c]
call fcn.00411b30
lea ecx, [esp + 0xce0]
push ecx
lea edx, [esp + 0x1960]
push edx
call fcn.004ecf82
add esp, 0x10
test eax, eax
je 0x40be45
inc esi
cmp esi, ebx
jl 0x40be00
lea eax, [esp + 0x1154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xcac]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bd27
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x7d8], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x6bc], esi
jne 0x40be94
mov eax, dword [esp + 0x6c4]
lea edx, [esp + 0x6c8]
cmp eax, edx
je 0x40be94
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x900], 0
mov dword [esp + 0x7e4], esi
jne 0x40bec0
mov eax, dword [esp + 0x7ec]
lea ecx, [esp + 0x7f0]
cmp eax, ecx
je 0x40bec0
push eax
call fcn.004ed7b6
add esp, 4
lea eax, [esp + 0x90c]
call fcn.00411620
cmp byte [esp + 0x460], 0
mov dword [esp + 0x344], esi
jne 0x40bef8
mov eax, dword [esp + 0x34c]
lea edx, [esp + 0x350]
cmp eax, edx
je 0x40bef8
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x6b0], 0
mov dword [esp + 0x594], esi
jne 0x40bf24
mov eax, dword [esp + 0x59c]
lea ecx, [esp + 0x5a0]
cmp eax, ecx
je 0x40bf24
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x588], 0
mov dword [esp + 0x46c], esi
jne 0x40bf50
mov eax, dword [esp + 0x474]
lea edx, [esp + 0x478]
cmp eax, edx
je 0x40bf50
push eax
call fcn.004ed7b6
add esp, 4
mov byte [esp + 0x2168], 1
mov esi, vtable.allocator_unsigned_char__class_TAllocDefault_.0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.00405700
mov byte [esp + 0x2168], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.004163d0
mov ecx, dword [esp + 0x2160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2148]
xor ecx, esp
call fcn.004ecddb
mov esp, ebp
pop ebp
ret