Function at 0x4a5280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x414], ax
mov ebx, 1
lea eax, [ebp - 0x412]
mov dword [esi + 0x14], 0
push eax
call fcn.0052f1e0
add esp, 0xc
xor ecx, ecx
movzx eax, word [ecx + str.__wannengkantu__]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x4a52c4
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4a52e4
mov eax, dword [str.11021]
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ecx], eax
mov eax, dword [0x647608]
mov dword [ecx + 4], eax
mov eax, dword [0x64760c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0xf001f
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4a54d8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x414]
push eax
push 0x720
push 0
push 4
push 0
push 0xffffffffffffffff
call ebx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4a551c
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0052f1e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0052f1e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0052f1e0
add esp, 0x24
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.11021
push str.WnPicture
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push 0x6463dc
push eax
call fcn.00530563
add esp, 0x14
xor ecx, ecx
movzx eax, word [ecx + str.__wannengkantu__]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x4a53e0
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4a5400
mov eax, dword [str.TEMP__]
mov dword [ecx], eax
mov eax, dword [0x647614]
mov dword [ecx + 4], eax
mov eax, dword [0x647618]
mov dword [ecx + 8], eax
mov ax, word [0x64761c]
mov word [ecx + 0xc], ax
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4a5436
mov eax, dword [str.11021]
mov dword [ecx], eax
mov eax, dword [0x647608]
mov dword [ecx + 4], eax
mov eax, dword [0x64760c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0xf001f
mov dword [esi + 0x14], 1
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4a54d2
lea eax, [ebp - 0x20c]
push eax
push 1
push 6
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4a54d2
push eax
push 0x80
push 4
push eax
push 3
push 0x10000000
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a5530
lea eax, [ebp - 0x20c]
push eax
push 0x720
push 0
push 4
push 0
push edi
call ebx
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x828]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a5530
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4a5520
mov dword [esi + 0x28], eax
test ebx, ebx
jne 0x4a5506
mov ecx, eax
call fcn.004a3c70
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x4a54d8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret