Function at 0x402560
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0xa40
push esi
mov esi, dword [esp + 0xa50]
push esi
lea edx, [esp + 0x18]
xor eax, eax
xor ecx, ecx
push 0x104
push edx
mov word [esp + 0x228], ax
mov word [esp + 0x20], cx
call fcn.004030f0
add esp, 0xc
test al, al
je 0x4028f6
push 0x401320
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00403140
add esp, 0xc
test al, al
je 0x4028f6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push ebp
mov ebp, dword [esp + 0xa5c]
push edi
mov edi, dword [esp + 0xa58]
lea ecx, [esp + 0x14]
push ecx
push 0x402440
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xa6c]
push 0x4013f8
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
je 0x4028e9
push 0x104
push ebp
call fcn.004030c0
add esp, 8
test eax, eax
je 0x4028e9
push 0x104
push esi
call fcn.004030c0
add esp, 8
test eax, eax
jbe 0x4027ce
mov edi, dword [esp + 0xa54]
push 0x410
lea ecx, [esp + 0x230]
push ecx
xor edx, edx
xor eax, eax
push edi
mov word [esp + 0xa58], dx
mov word [esp + 0x238], ax
mov bl, 1
call fcn.004022a0
add esp, 0xc
test al, al
je 0x402753
push 0x401378
lea edx, [esp + 0x230]
push 0x410
push edx
call fcn.00403140
add esp, 0xc
test al, al
je 0x402753
push 0x4014c8
lea eax, [esp + 0x230]
push 0x410
push eax
call fcn.00403140
add esp, 0xc
test al, al
je 0x402753
push esi
lea ecx, [esp + 0x230]
call fcn.00401f00
test al, al
je 0x402753
push 0x4014c4
lea ecx, [esp + 0x230]
push 0x410
push ecx
call fcn.00403140
add esp, 0xc
test al, al
je 0x402753
push 0x4013a0
lea edx, [esp + 0x230]
push 0x410
push edx
call fcn.00403140
add esp, 0xc
test al, al
je 0x402753
push 0x4014c8
lea eax, [esp + 0x230]
push 0x410
push eax
call fcn.00403140
add esp, 0xc
test al, al
je 0x402753
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x230]
push 0x410
push edx
call fcn.00403140
add esp, 0xc
test al, al
je 0x402753
push 0x4014c4
lea eax, [esp + 0x230]
push 0x410
push eax
call fcn.00403140
add esp, 0xc
test al, al
jne 0x402755
xor bl, bl
lea ecx, [esp + 0x22c]
push ecx
push edi
call fcn.00402390
add esp, 8
mov dword [esp + 0x10], 0
test bl, bl
je 0x402796
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x230]
push eax
push 0
call fcn.00401db0
add esp, 0xc
test al, al
je 0x402794
cmp dword [esp + 0x10], 0
je 0x4027a1
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x4027c1
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00401ec0
test al, al
je 0x4027c1
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xa40
ret
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xa40
ret
lea edx, [esp + 0x14]
push edx
push 0x402440
push 0x4013f0
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4027f7
call ebp
cmp eax, 0x715
jne 0x4028e9
push 0x104
push esi
call fcn.004030c0
add esp, 8
test eax, eax
jbe 0x40284c
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00401b50
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push esi
mov bl, al
call edi
test bl, bl
je 0x40283f
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00401ec0
test al, al
jne 0x40283f
lea edx, [esp + 0x20]
push edx
call edi
xor bl, bl
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
add esp, 0xa40
ret
lea eax, [esp + 0x14]
push eax
push 0x402440
push 0x4013e8
push edi
call ebx
test eax, eax
jne 0x40286b
call ebp
cmp eax, 0x715
jne 0x4028e9
push 0x104
push esi
call fcn.004030c0
add esp, 8
test eax, eax
jbe 0x4028c8
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4028c8
push 3
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4028ad
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
jmp 0x4028c8
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00401ec0
test al, al
jne 0x4028c8
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
push esi
call fcn.004030c0
add esp, 8
pop edi
xor ecx, ecx
cmp ecx, eax
pop ebp
sbb eax, eax
pop ebx
neg eax
pop esi
add esp, 0xa40
ret
pop edi
pop ebp
pop ebx
xor al, al
pop esi
add esp, 0xa40
ret
xor al, al
pop esi
add esp, 0xa40
ret