Function at 0x4128e0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd816
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x280], esi
cmp dword [esi + 0x34], 0
jne 0x412c12
lea ecx, [ebp - 0x278]
call fcn.00402ed0
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00402e50
push eax
lea eax, [ebp - 0x278]
push 0x4e537c
push eax
call fcn.00418130
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.00402ed0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
push 0x20c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4129c4
xor eax, eax
lea ecx, [ebp - 0x248]
mov word [ebp - 0x3e], ax
call fcn.00402460
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00402250
push str.TempCrash
lea ecx, [ebp - 0x2c0]
call fcn.00402100
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x2a8]
call fcn.0041ad70
add esp, 4
lea ecx, [ebp - 0x2a8]
call fcn.004020f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c0]
call fcn.004020f0
push esi
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x2a8]
call fcn.0041ad70
add esp, 4
lea ecx, [ebp - 0x2a8]
call fcn.004020f0
lea ecx, [ebp - 0x260]
call fcn.00418870
push 0x100
call fcn.004da223
mov edi, eax
add esp, 4
mov dword [ebp - 0x27c], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x412a63
xor eax, eax
mov word [edi], ax
mov word [edi + 0x80], ax
jmp 0x412a65
xor edi, edi
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push str.fulldump
push 0x40
push edi
call esi
add esp, 0xc
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
push 0xa
push 0x10
push eax
mov eax, dword [ebp - 0x280]
movups xmmword [ebp - 0x24], xmm0
push dword [eax + 0x18]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x80]
push 0x40
push eax
call esi
add esp, 0x1c
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x28c], 1
push 0xc8
call fcn.004d99f3
add esp, 4
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 4
push 0xc8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x280]
add esp, 0xc
lea ecx, [ecx + 0x1c]
call fcn.00402e50
lea ecx, [ebp - 0x278]
mov esi, eax
call fcn.00402e50
mov edx, dword [ebp - 0x27c]
mov edi, eax
lea ecx, [edx + 0x10]
mov dword [edx + 0xc], 0
call fcn.00402ed0
lea ecx, [edx + 0x28]
call fcn.00402ed0
lea ecx, [edx + 0x40]
call fcn.00402ed0
push 0x18
mov dword [edx + 0xc0], 0
mov dword [edx + 0xc4], 0
call fcn.004d99f3
add esp, 4
mov ecx, eax
mov edx, ecx
call fcn.00402000
lea edx, [ecx + 4]
mov dword [eax], ecx
call fcn.00402000
push esi
mov dword [eax], ecx
mov eax, dword [ebp - 0x27c]
mov dword [eax + 0xc0], ecx
lea ecx, [ebp - 0x290]
push ecx
sub esp, 8
lea ecx, [ebp - 0x260]
push edi
sub esp, 0x14
push ecx
mov ecx, eax
call fcn.004337a1
mov byte [ebp - 4], 1
push dword [ebp - 0x280]
mov dword [ebp - 0x288], 0
push dword [ebp - 0x27c]
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x288]
call fcn.00412cb0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x288]
mov eax, dword [edx + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x284], eax
mov dword [edx + 0x38], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.004020f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004020f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret