Function at 0x4093b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2dc
mov eax, dword [0x41e038]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x4000
mov dword [esp + 0x14], edi
call fcn.0041b20b
add esp, 4
mov dword [edi + 0x40], eax
push 0x41e138
mov ebx, 0x40189c
lea eax, [esp + 0x88]
call fcn.00408f70
add esp, 4
push 0x41e138
mov ebx, 0x4018ac
lea eax, [esp + 0x6c]
call fcn.00408f70
add esp, 4
push 0x41e138
mov ebx, 0x4018b8
lea eax, [esp + 0x50]
call fcn.00408f70
add esp, 4
push 0x41e154
mov ebx, 0x4018c8
lea eax, [esp + 0x34]
call fcn.00408f70
xor eax, eax
add esp, 4
push eax
mov word [esp + 0x18], ax
push 0x41e170
or eax, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.00408480
mov eax, dword [esp + 0x14]
mov ebx, 8
cmp dword [esp + 0x28], ebx
jae 0x40947a
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x24]
cmp word [eax + edx*2 - 2], 0x5c
jne 0x4094ae
lea ecx, [edx - 1]
cmp ecx, edx
ja 0x40949b
or eax, 0xffffffff
lea esi, [esp + 0x14]
call fcn.004089b0
jmp 0x4094ae
mov eax, ecx
push 0
sub eax, edx
lea edi, [esp + 0x18]
call fcn.00408330
mov edi, dword [esp + 0x10]
lea eax, [edi + 0x1c]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x14], ebx
jb 0x4094bc
mov eax, dword [eax]
push eax
lea eax, [esp + 0xc0]
call fcn.004081d0
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x4094d8
mov eax, dword [eax]
mov ecx, eax
call fcn.00418020
cmp dword [esp + 0xd0], esi
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov dword [edi + 0x3c], eax
jb 0x4094fe
mov ecx, dword [esp + 0xbc]
push ecx
call esi
add esp, 4
cmp dword [edi + 0x3c], 0
jne 0x4095da
push 0x40000
push 0
push 0x4018d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x28], ebx
jb 0x40952c
mov edx, dword [esp + 0x14]
push edx
call esi
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp dword [esp + 0x44], ebx
jb 0x409554
mov ecx, dword [esp + 0x30]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0
mov word [esp + 0x30], dx
cmp dword [esp + 0x60], ebx
jb 0x409577
mov eax, dword [esp + 0x4c]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], cx
cmp dword [esp + 0x7c], ebx
jb 0x40959a
mov edx, dword [esp + 0x68]
push edx
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
cmp dword [esp + 0x98], ebx
jb 0x4095c3
mov ecx, dword [esp + 0x84]
push ecx
call esi
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], ebx
jae 0x4095f1
lea eax, [esp + 0x84]
mov ebx, dword [sym.imp.MSVCR100.dll__waccess]
push 0
push eax
call ebx
add esp, 8
test eax, eax
jne 0x409640
push 1
push 0x401924
sub esp, 0x1c
mov esi, esp
xor edx, edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
push edx
mov eax, 0x40135c
mov word [esi], dx
call fcn.004088c0
lea eax, [esp + 0xa8]
push eax
mov ecx, edi
call fcn.00409c90
test al, al
je 0x40992b
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x40964f
lea eax, [esp + 0x68]
xor esi, esi
push esi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x409698
push 1
push 0x40192c
sub esp, 0x1c
mov esi, esp
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
push ecx
mov eax, 0x40135c
mov word [esi], cx
call fcn.004088c0
lea edx, [esp + 0x54]
push edx
mov ecx, edi
call fcn.00409c90
test al, al
je 0x40992b
xor esi, esi
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4096a7
lea eax, [esp + 0x14]
push esi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4096ec
push 1
push 0x401934
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push eax
mov eax, 0x40135c
call fcn.004088c0
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.00409c90
test al, al
je 0x40992b
xor esi, esi
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x4096fb
lea eax, [esp + 0x30]
push esi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x409730
push 1
push 0x40193c
sub esp, 0x1c
mov eax, 0x40135c
mov ecx, esp
call fcn.00408290
lea edx, [esp + 0x54]
push edx
mov ecx, edi
call fcn.00409c90
test al, al
je 0x40992d
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x40973f
lea eax, [esp + 0x4c]
push esi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x409773
push esi
push 0x401944
sub esp, 0x1c
mov eax, 0x40135c
mov ecx, esp
call fcn.00408290
lea eax, [esp + 0x70]
push eax
mov ecx, edi
call fcn.00409c90
test al, al
je 0x40992d
lea ecx, [esp + 0xd8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0xd8]
push edx
push esi
push 0x401954
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esp + 0xc]
xor ecx, ecx
push esi
mov word [esp + 0xa4], cx
push edi
or eax, 0xffffffff
lea ecx, [esp + 0xa8]
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], esi
call fcn.00408480
push edi
lea edi, [esp + 0x10]
mov dword [esp + 0x10], 0x5c
call fcn.0040a640
cmp eax, 0xffffffff
je 0x4097f4
inc eax
xor ecx, ecx
lea esi, [esp + 0xa0]
call fcn.004089b0
cmp dword [esp + 0xb4], 8
mov eax, dword [esp + 0xa0]
jae 0x40980c
lea eax, [esp + 0xa0]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [esp + 0xd8]
push edx
push eax
push 0x40195c
push 0x401968
call esi
lea eax, [esp + 0xd8]
push eax
push 0x401980
push 0x401984
push 0x401968
call esi
lea ecx, [esp + 0xd8]
push ecx
push 0x4019a4
push 0x4019ac
push 0x401968
call esi
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0xc0]
call fcn.004081d0
mov edi, 0x10
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x40987c
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
mov edx, 0x4019cc
mov ecx, eax
call fcn.00409b80
cmp dword [esp + 0xd0], edi
jb 0x4098a6
mov eax, dword [esp + 0xbc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esi + 0x3c]
call fcn.00418f10
test eax, eax
je 0x4099f8
push 0x40000
push 0
push 0x4018d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0xa0]
call fcn.00412770
lea esi, [esp + 0x14]
call fcn.00412770
lea esi, [esp + 0x30]
call fcn.00412770
lea esi, [esp + 0x4c]
call fcn.00412770
lea esi, [esp + 0x68]
call fcn.00412770
lea esi, [esp + 0x84]
call fcn.00412770
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ebx, 8
cmp dword [esp + 0x28], ebx
jb 0x409946
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov edi, 7
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], dx
cmp dword [esp + 0x44], ebx
jb 0x40996e
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov word [esp + 0x30], cx
cmp dword [esp + 0x60], ebx
jb 0x409991
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], ax
cmp dword [esp + 0x7c], ebx
jb 0x4099b4
mov ecx, dword [esp + 0x68]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], esi
mov word [esp + 0x68], dx
cmp dword [esp + 0x98], ebx
jb 0x4095c3
mov eax, dword [esp + 0x84]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea esi, [esp + 0xa0]
call fcn.00412770
lea esi, [esp + 0x14]
call fcn.00412770
lea esi, [esp + 0x30]
call fcn.00412770
lea esi, [esp + 0x4c]
call fcn.00412770
lea esi, [esp + 0x68]
call fcn.00412770
lea esi, [esp + 0x84]
call fcn.00412770
mov ecx, dword [esp + 0x2e4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret