Function at 0x4389c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4389d1
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
test ebx, 0x10000000
je 0x4389fa
call fcn.0040330c
mov byte [ebp - 9], al
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor edi, edi
test esi, esi
jne 0x438a19
lea eax, [ebp - 0x200c]
push eax
call fcn.00405d44
pop ecx
jmp 0x438a42
push esi
push edi
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
lea esi, [ebp - 0x200c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test bl, 0x10
mov esi, 0x8204140
je 0x438a4f
or esi, 0x10
test bl, 4
je 0x438a57
or esi, 4
mov eax, ebx
and eax, 0x10000000
test eax, eax
je 0x438aa8
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x100c]
push edx
push 0x5cfbd1
push ecx
call fcn.004d1ac0
add esp, 0xc
mov eax, ebx
and eax, 0x10000000
test eax, eax
je 0x438aa8
push 0
push 0x2006
push 0x3c
push 0xffffffffffffff9c
push 0x8c
push 0x50
push 0
lea edx, [ebp - 0x100c]
push edx
call fcn.0040312c
add esp, 0x20
push esi
push 0
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x200c]
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0043792c
add esp, 0x1c
test eax, eax
je 0x438e83
push 1
lea edx, [ebp - 0x200c]
push edx
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x438b01
push 5
lea eax, [ebp - 0x200c]
push eax
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
je 0x438e83
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x438b3e
lea eax, [ebp - 0x200c]
push eax
call fcn.004cd3e4
pop ecx
push eax
lea edx, [ebp - 0x200c]
push edx
mov ecx, dword [ebp - 8]
push ecx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00404388
pop ecx
mov edx, dword [ebp - 8]
test edx, edx
je 0x438b62
push 0xb
push 0x5cfbdc
mov ecx, dword [ebp - 8]
push ecx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00404388
pop ecx
mov edi, 1
mov eax, dword [ebp - 4]
push eax
call fcn.00404018
pop ecx
lea edx, [ebp - 0x100c]
push edx
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040498c
add esp, 0xc
test eax, eax
jl 0x438e83
push 1
lea eax, [ebp - 0x100c]
push eax
call fcn.00436700
add esp, 8
movsx edx, byte [ebp - 0x100c]
cmp edx, 0x3c
jne 0x438bde
movsx ecx, byte [ebp - 0x100b]
cmp ecx, 0x42
jne 0x438bde
movsx eax, byte [ebp - 0x100a]
cmp eax, 0x41
jne 0x438bde
movsx edx, byte [ebp - 0x1009]
cmp edx, 0x53
jne 0x438bde
movsx ecx, byte [ebp - 0x1008]
cmp ecx, 0x3e
je 0x438b71
movsx eax, byte [ebp - 0x100c]
cmp eax, 0x3c
jne 0x438cdd
movsx edx, byte [ebp - 0x100b]
cmp edx, 0x44
jne 0x438cdd
movsx ecx, byte [ebp - 0x100a]
cmp ecx, 0x49
jne 0x438cdd
movsx eax, byte [ebp - 0x1009]
cmp eax, 0x52
jne 0x438cdd
movsx edx, byte [ebp - 0x1008]
cmp edx, 0x3e
jne 0x438cdd
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x438c60
lea eax, [ebp - 0x100c]
push eax
call fcn.004cd3e4
pop ecx
push eax
lea edx, [ebp - 0x100c]
push edx
mov ecx, dword [ebp - 8]
push ecx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00404388
pop ecx
mov eax, ebx
and eax, 0x10000000
test eax, eax
je 0x438c92
test eax, eax
je 0x438c92
push 0
push 0x2006
push 0x3c
push 0xffffffffffffff9c
push 0x8c
push 0x50
push 0
lea edx, [ebp - 0x100c]
push edx
call fcn.0040312c
add esp, 0x20
lea ecx, [ebp - 0x1007]
push ecx
call fcn.00438978
pop ecx
test al, al
jne 0x438b71
push 0x200
lea eax, [ebp - 0x1007]
push eax
call fcn.00404efc
add esp, 8
test al, al
je 0x438b71
lea edx, [ebp - 0x1007]
push edx
call fcn.00438978
pop ecx
test al, al
jne 0x438b71
jmp 0x438b71
movsx ecx, byte [ebp - 0x100c]
cmp ecx, 0x3c
jne 0x438ddc
movsx eax, byte [ebp - 0x100b]
cmp eax, 0x4c
jne 0x438ddc
movsx edx, byte [ebp - 0x100a]
cmp edx, 0x4e
jne 0x438ddc
movsx ecx, byte [ebp - 0x1009]
cmp ecx, 0x4b
jne 0x438ddc
movsx eax, byte [ebp - 0x1008]
cmp eax, 0x3e
jne 0x438ddc
mov edx, dword [ebp - 8]
test edx, edx
je 0x438d5f
lea ecx, [ebp - 0x100c]
push ecx
call fcn.004cd3e4
pop ecx
push eax
lea eax, [ebp - 0x100c]
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.004042b4
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00404388
pop ecx
mov eax, ebx
and eax, 0x10000000
test eax, eax
je 0x438d91
test eax, eax
je 0x438d91
push 0
push 0x2006
push 0x3c
push 0xffffffffffffff9c
push 0x8c
push 0x50
push 0
lea edx, [ebp - 0x100c]
push edx
call fcn.0040312c
add esp, 0x20
lea ecx, [ebp - 0x1007]
push ecx
call fcn.0043647c
pop ecx
test eax, eax
je 0x438b71
push 0x200
lea eax, [ebp - 0x1007]
push eax
call fcn.00404efc
add esp, 8
test al, al
je 0x438b71
lea edx, [ebp - 0x1007]
push edx
call fcn.0043647c
pop ecx
test eax, eax
je 0x438b71
jmp 0x438b71
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x438e0e
lea eax, [ebp - 0x100c]
push eax
call fcn.004cd3e4
pop ecx
push eax
lea edx, [ebp - 0x100c]
push edx
mov ecx, dword [ebp - 8]
push ecx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00404388
pop ecx
mov eax, ebx
and eax, 0x10000000
test eax, eax
je 0x438e40
test eax, eax
je 0x438e40
push 0
push 0x2006
push 0x3c
push 0xffffffffffffff9c
push 0x8c
push 0x50
push 0
lea edx, [ebp - 0x100c]
push edx
call fcn.0040312c
add esp, 0x20
lea ecx, [ebp - 0x100c]
push ecx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
jne 0x438b71
push 0x200
lea eax, [ebp - 0x100c]
push eax
call fcn.00404efc
add esp, 8
test al, al
je 0x438b71
lea edx, [ebp - 0x100c]
push edx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
jmp 0x438b71
mov eax, ebx
and eax, 0x10000000
test eax, eax
je 0x438ec1
mov dl, byte [ebp - 9]
test dl, dl
je 0x438ebc
test eax, eax
je 0x438ec1
push 0
push 0x2006
push 0x3c
push 0xffffffffffffff9c
push 0x8c
push 0x50
push 0
push 0x5cfbea
call fcn.0040312c
add esp, 0x20
jmp 0x438ec1
call fcn.00403324
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x438ed2
lea eax, [ebp - 4]
push eax
call fcn.00403e78
pop ecx
mov edx, dword [ebp - 8]
test edx, edx
je 0x438eed
mov ecx, dword [ebp - 8]
push ecx
call fcn.00404388
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.00403e78
pop ecx
test bh, 0x10
jne 0x438eff
lea edx, [ebp - 0x200c]
push edx
call fcn.00404c28
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret