Function at 0x40e9d0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a541
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
push 0x5684c8
push 0xa0
xor ebx, ebx
push ebx
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40ea99
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40ef31
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
jne 0x40eb19
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eaca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eaec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40ef31
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40ebf5
push 0x208
lea edx, [ebp - 0x21c]
push ebx
push edx
call fcn.005168b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004075e0
lea ebx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.0040fb20
lea edx, [ebp + 0xc]
push edx
mov eax, ebx
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040fc20
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.00407da0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ebcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ebf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0040fc20
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00407da0
mov bl, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
call fcn.004286f1
push 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x10]
push 0x1001
push ecx
lea ecx, [ebp - 0x23c]
call fcn.00428c08
lea ecx, [ebp - 0x23c]
test eax, eax
jne 0x40ecee
mov byte [ebp - 4], bl
call fcn.0042885f
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ecbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40ef31
push esi
push edi
call fcn.00428428
lea ecx, [ebp - 0x23c]
call fcn.00428514
lea ecx, [ebp - 0x23c]
call fcn.0042868c
lea esi, [ebp - 0x270]
call fcn.0040b6a0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 0x10]
mov esi, dword [edx - 0xc]
test esi, esi
jns 0x40ed2e
push 0x80070057
call fcn.00408450
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40ed4b
push esi
lea ecx, [ebp + 0x10]
call fcn.004083b0
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 0x270]
push ecx
call fcn.0040dca0
test al, al
je 0x40ed85
push ecx
lea edx, [ebp + 0xc]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.00407f80
lea ecx, [ebp - 0x270]
call fcn.0040dc30
lea edi, [ebp - 0x270]
call fcn.0040bb00
mov edx, dword [ebp + 0x10]
mov esi, dword [edx - 0xc]
test esi, esi
jns 0x40ed99
push 0x80070057
call fcn.00408450
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40edb6
push esi
lea ecx, [ebp + 0x10]
call fcn.004083b0
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x18], 1
jne 0x40ee3e
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 0x14]
call fcn.00408410
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x5684d8
lea edx, [ebp + 0xc]
push edx
push ecx
mov esi, eax
call fcn.0040fce0
mov ebx, dword [ebp - 0x228]
add esp, 0xc
mov ecx, esi
call fcn.0040f0f0
test eax, eax
jne 0x40ee3e
mov byte [ebp - 4], 6
lea eax, [ebp - 0x270]
push eax
call fcn.0040b720
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.0042885f
lea ecx, [ebp + 0xc]
call fcn.00408290
lea ecx, [ebp + 0x10]
call fcn.00408290
lea ecx, [ebp + 0x14]
call fcn.00408290
xor eax, eax
jmp 0x40ef31
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [ebp + 0x14]
call fcn.00408410
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
mov edi, eax
push 0x5684d8
lea eax, [ebp + 0xc]
push eax
push edx
call fcn.0040fce0
mov ebx, dword [ebp - 0x228]
add esp, 0xc
call fcn.0040f280
test eax, eax
jne 0x40eeb4
lea ecx, [ebp - 0x270]
push ecx
mov byte [ebp - 4], 6
call fcn.0040b720
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.0042885f
lea ecx, [ebp + 0xc]
call fcn.00408290
lea ecx, [ebp + 0x10]
call fcn.00408290
lea ecx, [ebp + 0x14]
call fcn.00408290
xor eax, eax
jmp 0x40ef31
mov edx, dword [ebx + 0x16c]
mov eax, dword [edx - 0xc]
lea ecx, [ebx + 0x16c]
push eax
call fcn.00408410
push ecx
mov edi, eax
mov ecx, esp
lea eax, [ebx + 0x168]
mov dword [ebp - 0x220], esp
push eax
lea edx, [ebp + 0xc]
push edx
push ecx
call fcn.0040fc20
add esp, 0xc
call fcn.0040f280
mov byte [ebp - 4], 6
test eax, eax
je 0x40ee04
lea ecx, [ebp - 0x270]
push ecx
call fcn.0040b720
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.0042885f
lea ecx, [ebp + 0xc]
call fcn.00408290
lea ecx, [ebp + 0x10]
call fcn.00408290
lea ecx, [ebp + 0x14]
call fcn.00408290
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051447c
mov esp, ebp
pop ebp
ret 0x14