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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6c96
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x358], ebx
cmp dword [ebx + 0xc38], 0
je 0x447aee
mov edx, dword [ebx + 0xc44]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4475b0
sub ecx, esi
sar ecx, 1
je 0x447aee
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4475d0
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x447607
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4475f0
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x2f
je 0x447613
push ecx
lea ecx, [ebx + 0xc40]
call fcn.00429db0
mov ecx, ebx
call fcn.00447b10
xor eax, eax
cmp dword [ebx + 0xc38], eax
jbe 0x447ad9
nop dword [eax + eax]
lea ecx, [ebp - 0x118]
mov dword [ebp - fcn.00429d50], vtable.UiLib::CDuiString.0
mov dword [ebp - 0x11c], ecx
xor ecx, ecx
mov word [ebp - 0x118], cx
inc eax
mov dword [ebp - 4], ecx
push eax
push dword [ebx + 0xc44]
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x120]
push str._s_d.png
push eax
call fcn.0042a2d0
xor eax, eax
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x90]
mov eax, dword [0x4e60d4]
add esp, 0x10
test eax, eax
mov dword [ebp - 0x94], ecx
mov edi, 0x4c5de8
cmovne edi, eax
mov esi, edi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4476a7
sub esi, edx
sar esi, 1
cmp esi, 0x3f
jl 0x4476df
lea eax, [esi*2 + 2]
mov dword [ebp - 0x94], 0
push eax
push 0
call fcn.0049e54b
mov ecx, eax
add esp, 8
mov dword [ebp - 0x94], ecx
push esi
push edi
push ecx
call fcn.0049e1da
mov eax, dword [ebp - 0x94]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi*2], cx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
mov eax, dword [0x4e615c]
cmp word [eax], 0
jne 0x4477c6
push dword [ebp - 0x11c]
call fcn.00429b60
push dword [ebp - 0x94]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x447a74
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x354], edi
test edi, edi
je 0x447764
mov edx, dword [ebp - 0x94]
lea ecx, [edi + 4]
push ecx
push edx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [edi + 8], eax
jmp 0x447766
xor edi, edi
mov dword [ebp - 0x354], edi
test edi, edi
je 0x447a74
lea esi, [ebx + 0xcc8]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x354]
cmp ecx, eax
jae 0x447a40
mov edx, ecx
mov ecx, dword [esi]
cmp ecx, edx
ja 0x447a40
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x4477ab
push ecx
mov ecx, esi
call fcn.0040a060
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x447a56
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x447a74
push eax
call fcn.00429b60
cmp byte [0x4e90b4], 0
je 0x4477e0
mov edi, dword [0x4e90b8]
jmp 0x4478f1
mov ebx, dword [ebp - 0x94]
push 0x340
call fcn.00493133
mov esi, eax
add esp, 4
mov dword [ebp - 0x354], esi
lea edi, [esi + 0x138]
mov dword [esi], 0
push edi
push 0x104
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x447830
mov eax, dword [0x4c9500]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
mov dword [edi], eax
mov dword [ebp - 0x354], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x354], eax
cmp eax, 0xffffffff
je 0x447a5c
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.00493133
mov edi, eax
add esp, 4
mov byte [edi], 1
mov byte [edi + 1], bl
mov ecx, dword [ebp - 0x354]
mov dword [edi + 4], ecx
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
test bl, bl
je 0x4478c1
push 1
push 0
push 0
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.0043d6c0
mov dword [esi], eax
mov eax, dword [0x4e9104]
mov dword [0x4e9100], eax
test eax, eax
jne 0x447a66
push 8
call fcn.00493133
mov edi, eax
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], esi
test edi, edi
je 0x447a74
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x360]
push eax
push ecx
mov ecx, edi
call fcn.0043ed10
add esp, 0xc
test eax, eax
jne 0x447a74
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0x354], esi
test esi, esi
je 0x447a74
push esi
call fcn.004933e1
add esp, 4
mov ebx, eax
cmp dword [edi], 1
je 0x447950
mov dword [0x4e9100], 0x80000
jmp 0x447971
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x360]
call fcn.0043eb80
mov dword [0x4e9100], eax
test eax, eax
je 0x447993
cmp eax, 0x600
je 0x447993
push ebx
call fcn.00493645
add esp, 4
cmp byte [0x4e90b4], 0
jne 0x447a74
mov ecx, edi
call fcn.0043eeb0
jmp 0x447a74
cmp byte [0x4e90b4], 0
jne 0x4479d8
cmp dword [edi], 1
je 0x4479ad
mov dword [0x4e9100], 0x80000
jmp 0x4479d8
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.0043ec30
push 0x340
push esi
mov dword [0x4e9100], eax
call fcn.004933d3
push 8
push edi
call fcn.004933d3
mov esi, dword [ebp - 0x354]
add esp, 0x10
test ebx, ebx
je 0x447a74
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
push 0x10
mov esi, eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x447a14
lea ecx, [edi + 4]
mov dword [edi], vtable.Gdiplus::Image.0
push ecx
push esi
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [edi + 8], eax
jmp 0x447a16
xor edi, edi
push ebx
mov dword [ebp - 0x354], edi
call fcn.00493645
mov eax, dword [esi]
add esp, 4
push esi
call dword [eax + 8]
test edi, edi
je 0x447a74
mov esi, dword [ebp - 0x358]
add esi, 0xcc8
jmp 0x44777a
cmp eax, dword [esi + 8]
jne 0x447a4d
push ecx
mov ecx, esi
call fcn.0040a060
mov eax, dword [esi + 4]
test eax, eax
je 0x447a56
mov dword [eax], edi
add dword [esi + 4], 4
jmp 0x447a74
mov dword [0x4e9100], 0x200
push 0x340
push esi
call fcn.004933d3
add esp, 8
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x447a97
push eax
call fcn.0049b90f
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - fcn.00429d50], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x447ac1
push eax
call fcn.0049b90f
add esp, 4
mov ebx, dword [ebp - 0x358]
mov eax, dword [ebp - 0x35c]
cmp eax, dword [ebx + 0xc38]
jb 0x447630
mov eax, dword [ebx + 0xccc]
sub eax, dword [ebx + 0xcc8]
sar eax, 2
mov dword [ebx + 0xc38], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret