Function at 0x4828f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x23c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5134b0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, dword [0x6d301c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x6d2798]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x482bad
cmp byte [0x6d277c], 0
jne 0x482ad1
lea esi, [ebp - 0x248]
mov byte [0x6d277c], 1
push 0x20a
push 0
push esi
call fcn.0061e8c0
add esp, 0xc
push esi
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov edi, 0x658578
js 0x4829a3
cmp word [ebp - 0x248], 0
je 0x4829a3
push str.WerFault.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
mov edi, 0x658578
cmovne edi, esi
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], 0
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x4829eb
sub esp, 0xc
mov al, byte [ebp - 0x20]
lea ecx, [ebp - 0x38]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
cmp dword [ebp - 0x28], 0
jne 0x482a11
jmp 0x482a96
mov eax, esi
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x38]
add eax, esi
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x38], 0
cmp dword [ebp - 0x28], 0
je 0x482a96
cmp dword [ebp - 0x24], 7
jbe 0x482a1c
mov eax, dword [ebp - 0x38]
jmp 0x482a1f
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482a96
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 7
jbe 0x482a3f
mov eax, dword [ebp - 0x38]
jmp 0x482a42
lea eax, [ebp - 0x38]
mov ecx, dword [0x6d2794]
cmp ecx, esi
jae 0x482a6c
sub esp, 0xc
mov cl, byte [ebp - 0x248]
mov byte [esp + 4], cl
mov ecx, 0x6d2780
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
jmp 0x482a96
cmp ecx, 7
mov edi, 0x6d2780
jbe 0x482a7c
mov edi, dword [0x6d2780]
lea ecx, [esi + esi]
mov dword [0x6d2790], esi
push ecx
push eax
push edi
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x482ad1
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x482ac7
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x482c08
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp + 8]
mov esi, dword [0x6d2790]
cmp dword [0x6d2794], 7
mov edx, 0x6d2780
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
jbe 0x482afc
mov edx, dword [0x6d2780]
cmp esi, 7
ja 0x482b1a
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov edi, 7
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x482b92
mov edi, esi
mov ecx, 0x7ffffffe
mov dword [ebp - 0x3c], edx
or edi, 7
cmp edi, 0x7ffffffe
cmovb ecx, edi
lea eax, [ecx + ecx]
cmp ecx, 0x7ff
jb 0x482b67
cmp ecx, 0x7fffffee
mov dword [ebp - 0x10], 0xffffffff
jae 0x482c03
add eax, 0x25
push eax
call fcn.005d0220
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x482b7a
add eax, 2
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.005d0220
add esp, 4
mov ebx, dword [ebp + 8]
lea ecx, [esi + esi + 2]
mov dword [ebx], eax
push ecx
push dword [ebp - 0x3c]
push eax
call fcn.0061e340
mov eax, ebx
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
mov dword fs:[0], ecx
add esp, 0x23c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6d2798
call fcn.005d3d07
add esp, 4
cmp dword [0x6d2798], 0xffffffff
jne 0x482941
mov dword [0x6d2794], 7
mov dword [0x6d2790], 0
mov word [0x6d2780], 0
push 0x50fa10
call fcn.005cf77c
add esp, 4
push 0x6d2798
call fcn.005d3d59
add esp, 4
jmp 0x482941
call fcn.005e8c60
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x482c6e
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x482c64
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x482c73
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x14
pop ebp
ret
call fcn.006207e0
int3