Function at 0x436a04
Capabilities:
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1ba0
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x13b3]
push edi
mov edi, 0x3e7
mov dword [ebp - 0x1b98], ecx
xor ebx, ebx
push edi
push ebx
push eax
mov byte [ebp - 0x13b4], bl
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0xfcc], bl
lea eax, [ebp - 0xfcb]
push edi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov dword [ebp - 0x28], 0x612e4d53
mov dword [ebp - 0x24], 0x686372
push esi
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x436a99
lea eax, [ebp - 0xfcc]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x436ade
mov eax, str._sGlobal_DownloaderData_s
lea esi, [ebp - 0xfcc]
jmp 0x436a9e
mov eax, 0x6c643c
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
lea eax, [ebp - 0x13b4]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x13b4]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1b9c], edi
cmp edi, 0xffffffff
jne 0x436aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x436e3c
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x1ba0], esi
test esi, esi
jne 0x436b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x436ae4
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1b90], eax
test eax, eax
jne 0x436b3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x436ae4
lea eax, [ebp - 0x1b94]
mov dword [ebp - 0x1b94], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1b88], eax
cmp dword [ebp - 0x1b94], ebx
jne 0x436b2f
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x3000000
push 7
push ecx
mov ecx, dword [ebp - 0x1b90]
mov edx, eax
mov word [ebp - 0x1c], 0x5446
mov byte [ebp - 0x1a], 0x50
mov dword [ebp - 0x1b8c], 0x50544603
mov dword [ebp - 0x10], 0x50544604
mov byte [ebp - 0xc], 0x53
mov dword [ebp - 0x18], 0x54465304
mov byte [ebp - 0x14], 0x50
call fcn.00417191
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x436e1d
mov edi, dword [ebp - 0x1b88]
add esi, 7
add edi, dword [ebp - 0x1b90]
mov byte [ebp - 0x414], bl
mov byte [ebp - 0x7fc], bl
mov byte [ebp - 0x1b84], bl
mov byte [ebp - 0xbe4], bl
mov byte [ebp - 0x179c], bl
cmp esi, edi
ja 0x436e14
movzx ecx, byte [esi]
inc ecx
add ecx, esi
cmp ecx, edi
ja 0x436e14
movzx eax, byte [ecx]
inc ecx
add ecx, eax
cmp ecx, edi
ja 0x436e14
movzx eax, byte [ecx]
inc ecx
add ecx, eax
cmp ecx, edi
ja 0x436e14
mov al, byte [ecx]
movzx edx, al
mov dword [ebp - 0x1b88], edx
lea esi, [edx + ecx]
test al, al
je 0x436c78
lea eax, [esi + 1]
cmp eax, edi
ja 0x436e14
push edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x7fc]
push eax
call fcn.00638b30
mov eax, dword [ebp - 0x1b88]
add esp, 0xc
mov byte [ebp + eax - 0x7fc], bl
lea eax, [ebp - 0x7fc]
push str.__GD_ENCRYPTED
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x436c65
mov byte [eax], bl
push ecx
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x7fc]
call fcn.00436978
pop ecx
inc esi
cmp esi, edi
ja 0x436e14
movzx eax, byte [esi]
inc eax
add esi, eax
cmp esi, edi
ja 0x436e14
movzx eax, byte [esi]
mov dword [ebp - 0x1b88], eax
lea eax, [ebp - 0x414]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x436cdf
mov ecx, dword [ebp - 0x1b88]
lea eax, [ecx + 1]
add eax, esi
cmp eax, edi
ja 0x436e14
push ecx
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x179c]
push eax
call fcn.00638b30
mov eax, dword [ebp - 0x1b88]
add esp, 0xc
mov byte [ebp + eax - 0x179c], bl
jmp 0x436ce5
mov eax, dword [ebp - 0x1b88]
lea ecx, [esi + 1]
add ecx, eax
cmp ecx, edi
ja 0x436e14
movzx esi, byte [ecx]
inc esi
add esi, ecx
cmp esi, edi
ja 0x436e14
movzx eax, byte [esi]
mov dword [ebp - 0x1b88], eax
lea eax, [ebp - 0x414]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x436d7a
mov ecx, dword [ebp - 0x1b88]
lea eax, [ecx + 1]
add eax, esi
cmp eax, edi
ja 0x436e14
push ecx
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0xbe4]
push eax
call fcn.00638b30
mov eax, dword [ebp - 0x1b88]
add esp, 0xc
mov byte [ebp + eax - 0xbe4], bl
lea eax, [ebp - 0xbe4]
push str.__GD_ENCRYPTED
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x436d67
mov byte [eax], bl
push ecx
lea edx, [ebp - 0x1b84]
lea ecx, [ebp - 0xbe4]
call fcn.00436978
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x436dbb
push 0xffffffffffffffff
mov ecx, 0x6c5bb9
lea eax, [ebp - 0x414]
push ecx
push eax
lea eax, [ebp - 0x1b84]
push eax
lea eax, [ebp - 0x179c]
push eax
push ecx
mov ecx, dword [ebp - 0x1b98]
push 0x155
push 4
call fcn.0043ee6b
mov eax, dword [ebp - 0x1b88]
add eax, 5
add esi, eax
cmp esi, edi
ja 0x436e14
push 4
lea eax, [ebp - 0x1b8c]
push eax
push esi
call fcn.00639b07
add esp, 0xc
test eax, eax
jne 0x436de4
push 4
jmp 0x436e0c
push 5
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00639b07
add esp, 0xc
push 5
test eax, eax
je 0x436e0c
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00639b07
add esp, 0xc
test eax, eax
jne 0x436e14
push 5
pop eax
add esi, eax
jmp 0x436bbe
mov edi, dword [ebp - 0x1b9c]
xor ebx, ebx
inc ebx
push dword [ebp - 0x1b90]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1ba0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4