Function at 0x4832d0
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], 0x5134d0
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 [0x6d27b8]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48358d
cmp byte [0x6d279c], 0
jne 0x4834b1
lea esi, [ebp - 0x248]
push 0x20a
push 0
push esi
call fcn.0061e8c0
add esp, 0xc
push esi
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov edi, 0x658578
js 0x48337c
cmp word [ebp - 0x248], 0
je 0x48337c
push str.DWwin.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 0x4833c4
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 0x4833ea
jmp 0x48346f
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 0x48346f
cmp dword [ebp - 0x24], 7
jbe 0x4833f5
mov eax, dword [ebp - 0x38]
jmp 0x4833f8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48346f
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 7
jbe 0x483418
mov eax, dword [ebp - 0x38]
jmp 0x48341b
lea eax, [ebp - 0x38]
mov ecx, dword [0x6d27b4]
cmp ecx, esi
jae 0x483445
sub esp, 0xc
mov cl, byte [ebp - 0x248]
mov byte [esp + 4], cl
mov ecx, 0x6d27a0
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
jmp 0x48346f
cmp ecx, 7
mov edi, 0x6d27a0
jbe 0x483455
mov edi, dword [0x6d27a0]
lea ecx, [esi + esi]
mov dword [0x6d27b0], esi
push ecx
push eax
push edi
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov ecx, dword [ebp - 0x24]
mov byte [0x6d279c], 1
cmp ecx, 8
jb 0x4834b1
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4834a7
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4835e8
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 [0x6d27b0]
cmp dword [0x6d27b4], 7
mov edx, 0x6d27a0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
jbe 0x4834dc
mov edx, dword [0x6d27a0]
cmp esi, 7
ja 0x4834fa
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov edi, 7
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x483572
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 0x483547
cmp ecx, 0x7fffffee
mov dword [ebp - 0x10], 0xffffffff
jae 0x4835e3
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 0x48355a
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 0x6d27b8
call fcn.005d3d07
add esp, 4
cmp dword [0x6d27b8], 0xffffffff
jne 0x483321
mov dword [0x6d27b4], 7
mov dword [0x6d27b0], 0
mov word [0x6d27a0], 0
push 0x50fad0
call fcn.005cf77c
add esp, 4
push 0x6d27b8
call fcn.005d3d59
add esp, 4
jmp 0x483321
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 0x48364e
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x483644
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x483653
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