Function at 0x4d4d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx]
call dword [eax + 0x44]
mov al, byte [ebp + 0x10]
lea ecx, [ebp - 0x24]
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [ebx + 0x3c], al
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00403940
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], 0
cmp edi, 3
jae 0x4d4e1f
mov eax, ebx
sub eax, edi
cmp eax, 3
jae 0x4d4e00
lea eax, [edi + 0x23]
and eax, 0xffffffe0
mov dword [ebp + 0x10], eax
add eax, eax
push eax
push esi
call fcn.00446560
add esp, 8
test eax, eax
je 0x4d4e1f
test esi, esi
jne 0x4d4df4
xor ecx, ecx
mov word [eax + edi*2], cx
mov ebx, dword [ebp + 0x10]
mov esi, eax
dec ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x673238]
mov dword [esi + edi*2], eax
mov ax, word [0x67323c]
mov word [esi + edi*2 + 4], ax
add edi, 3
xor eax, eax
mov dword [ebp - 0x20], edi
mov word [esi + edi*2], ax
cmp ebx, 3
jae 0x4d4e49
push 0x40
push esi
call fcn.00446560
add esp, 8
test eax, eax
je 0x4d4e5a
test esi, esi
jne 0x4d4e3d
xor ecx, ecx
mov word [eax + edi*2], cx
mov esi, eax
mov dword [ebp - 0x1c], 0x1f
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 3
test esi, esi
je 0x4d4e5a
xor eax, eax
mov word [esi + 6], ax
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00403940
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x4d4e9e
lea eax, [ebp - 0x18]
push eax
call fcn.00471c00
mov ecx, dword [ebp - 0x14]
add esp, 4
test ecx, ecx
je 0x4d4f28
mov edx, dword [ebp - 0x18]
cmp word [edx + ecx*2 - 2], 0x5c
je 0x4d4f2b
mov eax, dword [ebp - 0x10]
mov edi, ecx
sub eax, edi
cmp eax, 1
jae 0x4d4ef3
lea ebx, [ecx + 0x21]
and ebx, 0xffffffe0
lea eax, [ebx + ebx]
push eax
push edx
call fcn.00446560
mov edx, eax
add esp, 8
test edx, edx
je 0x4d4f28
cmp dword [ebp - 0x18], 0
jne 0x4d4ee1
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov word [edx + ecx*2], ax
mov ecx, dword [ebp - 0x14]
lea eax, [ebx - 1]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
cmp edi, ecx
jbe 0x4d4ef3
mov edi, ecx
lea ebx, [edx + edi*2]
cmp edi, ecx
jae 0x4d4f10
sub ecx, edi
lea eax, [ebx + 2]
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004b4200
add esp, 0xc
lea esp, [esp]
mov eax, 0x5c
mov word [ebx], ax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc ecx
xor edx, edx
mov dword [ebp - 0x14], ecx
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x18]
mov eax, 0x649aa0
test esi, esi
je 0x4d4f36
mov eax, esi
test edx, edx
jne 0x4d4f3f
mov edx, 0x649aa0
lea ecx, [ebp - 0x230]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4d4f71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
js 0x4d4fae
jne 0x4d4f66
xor edi, edi
jmp 0x4d4fae
movzx edi, di
or edi, 0x83ff0000
jmp 0x4d4fae
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
movzx eax, byte [ebx + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfc000000
add eax, 0x4000100
push eax
push 1
push 7
push 2
lea eax, [ebp - 0x230]
push eax
call fcn.004d3fe0
mov edi, eax
lea ecx, [ebx + 0x30]
push 0xffffffffffffffff
lea eax, [ebp - 0x230]
push eax
call fcn.00403940
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
test eax, eax
je 0x4d4fc2
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 5
test esi, esi
je 0x4d4feb
push esi
call fcn.00446420
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc