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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push 0x440224
push 0x87
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x124], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x128], eax
push str.Mark
mov eax, dword [ebp - 0x128]
lea ecx, [ebp + eax - 0x124]
push ecx
call fcn.0041f7e0
add esp, 8
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
jne 0x406972
xor eax, eax
jmp 0x406af8
push 0x43f878
lea eax, [ebp - 0x124]
push eax
call fcn.0041fb69
add esp, 8
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0042097a
add esp, 0x10
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x130]
push eax
call fcn.0041fabc
add esp, 4
lea ecx, [ebp - 0x148]
call fcn.00403b10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x148]
call fcn.00403be0
movzx ecx, al
test ecx, ecx
je 0x406ad6
lea ecx, [ebp - 0x148]
call fcn.00403d60
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x148]
call fcn.00403d80
mov dword [ebp - 0x150], eax
lea ecx, [ebp - 0x148]
call fcn.00403da0
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x90], 0
je 0x406a71
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x90]
mov dword [ebp - 0x1a0], ecx
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], edx
cmp dword [ebp - 0x1a4], 0
je 0x406a67
push 1
mov eax, dword [ebp - 0x1a4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1a4]
call dword [edx + 4]
mov dword [ebp - 0x1a8], eax
jmp 0x406a71
mov dword [ebp - 0x1a8], 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004067d0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x90], eax
mov ecx, dword [ebp - 0x10]
call fcn.00406ff0
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.004015b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x90]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.00401610
mov dword [ebp - 0x19c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00403ba0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret