Function at 0x4d6bb0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, 0x283c
call fcn.0053fdb0
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0xa0f
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x2844], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2824], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x3e8
cmp edx, 0x21
ja case.default.0x4d6bfc
jmp dword [edx*4 + 0x5447fc]
mov dword [ebp - 0x2824], 0xfffffff5
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0xfffffff6
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x14
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x1a
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0xffffffff
jmp 0x4d6ded
mov dword [ebp - 0x2824], 7
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x1a
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x25
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0xffffffff
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x10
jmp 0x4d6ded
mov dword [ebp - 0x2824], 5
jmp 0x4d6ded
mov dword [ebp - 0x2824], 2
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x25
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x23
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x19
jmp 0x4d6ded
mov dword [ebp - 0x2824], 6
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x1f
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x2e
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x21
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x22
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x20
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0xd
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x27
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x26
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x2b
jmp 0x4d6ded
mov dword [ebp - 0x2824], 8
jmp 0x4d6ded
mov dword [ebp - 0x2824], 9
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x24
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x24
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x18
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x15
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x2d
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x13
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0x1b
jmp 0x4d6ded
mov dword [ebp - 0x2824], 0xffffffff
cmp dword [ebp - 0x2824], 0xfffffff6
jne 0x4d6ee0
call fcn.0052fe80
cmp al, 0
je 0x4d6e3e
lea eax, [ebp - 0x80c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x2828], eax
cmp dword [ebp - 0x2828], 0
je 0x4d6e39
push dword [ebp - 0x2828]
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cbb0
jmp case.0x4d70a1.1008
lea eax, [ebp - 0xc0c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x282c], eax
cmp dword [ebp - 0x282c], 0
je 0x4d6edb
mov dword [ebp - 0x2818], 0
lea edx, [ebp - 0xc0c]
lea eax, [ebp - 0xc0c]
push eax
call fcn.0040e8d0
pop ecx
push eax
lea eax, [ebp - 0xc0c]
push eax
lea ecx, [ebp - 0x2818]
call fcn.0040cb20
cmp dword [ebp - 0x2818], 0
je 0x4d6ea7
mov ebx, dword [ebp - 0x2818]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040d2e0
cmp dword [ebp - 0x2818], 0
je 0x4d6eca
mov ecx, dword [ebp - 0x2818]
call fcn.0040c8f0
call fcn.00514260
cmp dword [ebp - 0xc], 0
je 0x4d6edb
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp case.0x4d70a1.1008
cmp dword [ebp - 0x2824], 0xffffffff
jne 0x4d6f07
mov ebx, 0
cmp dword [ebp - 0xc], 0
je 0x4d6efc
mov ecx, dword [ebp - 0xc]
call fcn.0040c8f0
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
cmp dword [ebp - 0x2824], 0xfffffff5
jne 0x4d6f41
push 0x18
call fcn.00487050
pop ecx
cmp eax, 0
je 0x4d6f26
mov ecx, eax
call fcn.004ec7e0
mov eax, eax
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x4d6f36
mov ecx, dword [ebp - 0xc]
call fcn.0040c8f0
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0xc10], 0
mov dword [ebp - 0xc14], 0
mov byte [ebp - 0x282d], 0
lea eax, [ebp - 0xc14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, 0
jge 0x4d6f75
mov byte [ebp - 0x282d], 1
cmp byte [ebp - 0x282d], 0
jne 0x4d6fb0
lea eax, [ebp - 0xc10]
push eax
push dword [ebp - 0x2824]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, 0
je 0x4d6fb0
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 8]
mov byte [ebp - 0x282d], 1
cmp byte [ebp - 0x282d], 0
jne 0x4d7051
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0xc10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 0
je 0x4d7051
mov dword [ebp - 0x281c], 0
lea edx, [ebp - 0x1014]
lea eax, [ebp - 0x1014]
push eax
call fcn.0040e8d0
pop ecx
push eax
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x281c]
call fcn.0040cb20
cmp dword [ebp - 0x281c], 0
je 0x4d701d
mov ebx, dword [ebp - 0x281c]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x281c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040d2e0
cmp dword [ebp - 0x281c], 0
je 0x4d7040
mov ecx, dword [ebp - 0x281c]
call fcn.0040c8f0
call fcn.00514260
cmp dword [ebp - 0xc], 0
je 0x4d7051
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp dword [ebp - 0xc14], 0
je 0x4d7082
push dword [ebp - 0xc10]
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 0x14]
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 8]
cmp byte [ebp - 0x282d], 0
je case.0x4d70a1.1008
mov edx, dword [ebp + 8]
sub edx, 0x3ef
cmp edx, 0x15
ja case.0x4d70a1.1008
jmp dword [edx*4 + 0x5447a4]
call fcn.0052fe80
cmp al, 0
je 0x4d70ec
push 0x400
lea eax, [ebp - 0x1814]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x2834], eax
cmp dword [ebp - 0x2834], 0
je 0x4d70e7
push dword [ebp - 0x2834]
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cbb0
jmp case.0x4d70a1.1008
push 0x400
lea eax, [ebp - 0x1c14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x2838], eax
cmp dword [ebp - 0x2838], 0
je 0x4d7133
push dword [ebp - 0x2838]
lea eax, [ebp - 0x1c14]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb20
call fcn.00514260
cmp dword [ebp - 0xc], 0
je 0x4d7133
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp case.0x4d70a1.1008
call fcn.0052fe80
cmp al, 0
je 0x4d7179
push 0x400
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x283c], eax
cmp dword [ebp - 0x283c], 0
je 0x4d7177
push dword [ebp - 0x283c]
lea eax, [ebp - 0x2414]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cbb0
jmp case.0x4d70a1.1008
push 0x400
lea eax, [ebp - 0x2814]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x2840], eax
cmp dword [ebp - 0x2840], 0
je case.0x4d70a1.1008
push dword [ebp - 0x2840]
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb20
call fcn.00514260
cmp dword [ebp - 0xc], 0
je case.0x4d70a1.1008
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x4d71ce
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
jmp 0x4d71d3
mov eax, 0
cmp eax, 0
je 0x4d7242
mov bl, 0
push 0x14
call fcn.00487050
pop ecx
mov esi, eax
cmp esi, 0
je 0x4d7210
lea eax, [ebp - 0x2820]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cda0
mov bl, 1
lea eax, [ebp - 0x2820]
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.004d4a20
mov esi, eax
cmp bl, 0
je 0x4d7229
cmp dword [ebp - 0x2820], 0
je 0x4d7229
mov ecx, dword [ebp - 0x2820]
call fcn.0040c8f0
cmp dword [ebp - 0xc], 0
je 0x4d7237
mov ecx, dword [ebp - 0xc]
call fcn.0040c8f0
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov ebx, 0
cmp dword [ebp - 0xc], 0
je 0x4d7255
mov ecx, dword [ebp - 0xc]
call fcn.0040c8f0
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4