Function at 0x40431e
Capabilities:
Delete directory

Disassembly:
push 0x40
mov eax, 0x55c9c5
call fcn.0055b22a
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov byte [eax], 1
call fcn.00403c53
test eax, eax
jne 0x40473f
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0xd4]
mov byte [ebp - 0x2d], al
lea eax, [ebp - 0x2d]
push eax
mov ecx, dword [ecx]
push 0x15
call fcn.004087a8
pop ecx
pop ecx
test eax, eax
jne 0x40473f
movzx eax, byte [ebx + 0x8d]
lea esi, [ebx + 0x80]
cmp dword [ebx + 0x44], 3
mov dl, byte [ebx + 0x35]
push eax
push esi
sete cl
call fcn.00407d55
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
mov edx, esi
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00407eec
and dword [ebp - 4], 0
cmp byte [ebp - 0x2d], 0
jne 0x4043b1
mov ecx, ebx
call fcn.00403e65
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041c61b
mov byte [ebp - 4], 1
cmp dword [ebx + 0x44], 3
jne 0x4043db
mov ecx, dword [ebp - 0x2c]
call fcn.0041e98e
test al, al
jne 0x404405
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebx + 0x5c]
lea ecx, [ebp - 0x4c]
call fcn.00403bd0
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0041c6b4
mov byte [ebp - 4], 1
push dword [ebp - 0x4c]
call fcn.0054b686
pop ecx
cmp byte [ebx + 0x8c], 0
je 0x404438
lea eax, [ebp - 0x1c]
lea esi, [ebx + 0x94]
push eax
mov ecx, esi
call fcn.0041c6b4
cmp byte [ebp - 0x2d], 0
je 0x40442f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40445d
mov ecx, ebx
call fcn.00404c27
jmp 0x40445d
cmp byte [ebx + 0x30], 0
mov esi, dword [ebp - 0x3c]
jne 0x404467
push esi
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00403fb3
test eax, eax
je 0x404458
mov ebx, eax
jmp 0x40472b
cmp byte [esi], 0
je 0x404464
xor ebx, ebx
jmp 0x40472b
mov byte [esi], 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x94]
call fcn.0041c6b4
cmp byte [ebp - 0x2d], 0
je 0x404485
xor ebx, ebx
mov byte [esi], bl
jmp 0x40472b
push 0x18
call fcn.0054b68b
mov edx, eax
xor eax, eax
pop ecx
push 6
pop ecx
mov edi, edx
mov dword [ebp - 0x38], edx
rep stosd dword es:[edi], eax
mov dword [edx + 4], eax
mov dword [edx], vtable.COutFileStream.0
or dword [edx + 8], 0xffffffff
mov byte [edx + 0xc], al
mov dword [ebx + 0xe8], edx
mov byte [ebp - 4], 3
mov eax, dword [edx]
push edx
mov dword [ebp - 0x20], edx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5613b4]
call esi
mov byte [ebp - 4], 4
xor ecx, ecx
mov eax, dword [ebx + 0xe8]
mov dl, byte [ebx + 0x30]
push 0x80
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
lea ecx, [eax + 8]
xor eax, eax
test dl, dl
setne al
lea eax, [eax*2 + 2]
push eax
push 1
push 0x40000000
push dword [ebp - 0x1c]
call fcn.0041e019
test al, al
jne 0x404522
call fcn.0041dffe
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_open_output_file
push eax
mov ecx, ebx
call fcn.00403a72
jmp 0x404700
xor ecx, ecx
mov byte [ebx + 0x38], 1
mov esi, 0x1000
cmp byte [ebx + 0x3d], cl
je 0x40461d
mov edx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0xd8]
cmp edx, ecx
ja 0x40461d
cmp eax, ecx
jbe 0x40461d
cmp edx, ecx
ja 0x40461d
jb 0x404564
cmp eax, esi
jae 0x40461d
cmp byte [ebx + 0xd0], cl
je 0x40461d
mov eax, dword [ebx + 0xcc]
and eax, 0xf0000000
cmp eax, 0xa0000000
jne 0x404587
xor eax, eax
inc eax
jmp 0x404599
test dword [ebx + 0xcc], 0x400
je 0x40461d
mov al, cl
mov esi, dword [ebp - 0x34]
mov ecx, ebx
push 0x37
pop edx
mov byte [edx + ecx], al
lea ecx, [ebx + 0xf0]
push dword [esi + 0xd8]
call fcn.00405365
push 0x14
call fcn.0054b68b
pop ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x44], ecx
mov edi, ecx
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ecx + 4], 0
lea edi, [esi + 0xfc]
mov dword [ecx], vtable.CBufPtrSeqOutStream.0
mov dword [esi + 0xf8], ecx
mov ecx, edi
call fcn.004051f2
mov esi, dword [esi + 0xf8]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0xf0]
mov ecx, dword [ebp - 0x40]
mov edx, dword [edx + 0xf4]
and dword [esi + 0x10], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
push dword [edi]
call fcn.004051f2
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
jmp 0x404710
cmp byte [ebx + 0x25], 0
je 0x4046d3
cmp byte [ebx + 0x30], 0
jne 0x4046d9
cmp byte [ebx + 0x3d], 0
je 0x4046d3
mov edx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0xd8]
cmp edx, ecx
ja 0x404653
cmp eax, esi
jbe 0x4046d3
mov ecx, dword [ebx + 0xe8]
push edx
add ecx, 8
mov dword [ebx + 0xe0], eax
push eax
mov dword [ebx + 0xe4], edx
call fcn.0041e2bb
mov byte [ebx + 0x3e], al
test al, al
jne 0x404690
call fcn.0041dffe
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_set_length_for_output_file
push eax
mov ecx, ebx
call fcn.00403a72
test eax, eax
jne 0x404700
mov ecx, dword [ebx + 0xe8]
lea edx, [ebp - 0x48]
xor eax, eax
add ecx, 8
push edx
push eax
push eax
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.0041e12b
test al, al
je 0x4046b9
mov eax, dword [ebp - 0x48]
or eax, dword [ebp - 0x44]
je 0x4046d3
call fcn.0041dffe
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_seek_to_begin_of_file
push eax
mov ecx, ebx
call fcn.00403a72
test eax, eax
jne 0x404700
cmp byte [ebx + 0x30], 0
je 0x404704
mov edi, dword [ebp - 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
xor eax, eax
push eax
push eax
push dword [ebx + 0xa4]
mov ecx, esi
push dword [ebx + 0xa0]
push edi
call dword [0x5613b4]
call esi
test eax, eax
je 0x404707
mov ebx, eax
jmp 0x404723
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
push edi
call fcn.004051f2
push edi
lea ecx, [ebx + 0xec]
call fcn.004051f2
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
mov byte [eax], bl
lea ecx, [ebp - 0x20]
call fcn.0040218d
push dword [ebp - 0x1c]
call fcn.0054b686
push dword [ebp - 0x2c]
call fcn.0054b686
pop ecx
pop ecx
mov eax, ebx
call fcn.0055b1d9
ret 8