Function at 0x480350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x810
mov ecx, dword [0x5baf70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5ba618]
cmp eax, dword [ecx + 8]
jg 0x480b3d
cmp dword [0x5ba5e0], 0
push ebx
push esi
push edi
je 0x480b34
xor eax, eax
mov dword [ebp - 0xc], 0
push eax
push 0x104
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402d00
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0x6c], 0
push 0x595308
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.004532f0
lea ecx, [eax + 1]
cmp dword [ebp - 0xc], ecx
lea eax, [ebp - 0x1c]
cmovb ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], 8
push ecx
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.00402e60
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x480445
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48043b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480c9f
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov esi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], 7
lea eax, [esi + 6]
push eax
call fcn.0040c1b0
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
push esi
cmovae eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00402350
push 6
push str.theme_
lea ecx, [ebp - 0x4c]
call fcn.00402350
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x480499
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00402350
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x480503
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4804f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca4
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
mov ebx, dword [ebp - 0x34]
cmp edx, 8
mov eax, dword [ebp - 0x24]
cmovae ecx, ebx
cmp word [ecx + eax*2 - 8], 0x2e
je 0x480532
push 4
push str..xml
lea ecx, [ebp - 0x34]
call fcn.00402350
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
cmp edx, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
lea esi, [ebp - 0x34]
push eax
cmovae esi, ebx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp esi, 0xffffffff
je 0x480b24
test esi, 0x10
jne 0x480b24
push 0
lea ecx, [ebp - 0x1ec]
call fcn.00421bc0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1ec]
push eax
call fcn.00421e80
test al, al
je 0x480b19
lea eax, [ebp - 0x604]
push eax
lea ecx, [ebp - 0x1ec]
call fcn.004220c0
lea ecx, [ebp - 0x604]
call fcn.004218a0
test al, al
je 0x480b19
cmp dword [edi + 0x14], 8
jb 0x4805ce
mov edi, dword [edi]
push edi
push str.LoadTheme:_s_n
call fcn.00472280
add esp, 8
lea ecx, [ebp - 0x604]
call fcn.004218b0
mov edx, eax
mov dword [ebp - 0xc], 0
mov ecx, edx
mov dword [ebp - 8], 7
xor eax, eax
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480602
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00402e60
mov ebx, dword [ebp - 8]
lea edi, [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
cmp ebx, 8
cmovae edi, esi
cmp dword [ebp - 0xc], 6
jne 0x480a49
mov ecx, 0x59b618
mov edx, 6
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x480a49
add ecx, 2
sub edx, 1
jne 0x480640
xor eax, eax
mov dword [ebp - 0x3c], edx
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x604]
mov dword [ebp - 0x54], eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x3f8]
push eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x50], 7
call fcn.00421850
lea ecx, [ebp - 0x3f8]
call fcn.004218a0
test al, al
je 0x480979
nop dword [eax + eax]
lea ecx, [ebp - 0x3f8]
call fcn.004218b0
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4806b0
sub edx, esi
lea ecx, [ebp - 0x1c]
sar edx, 1
push edx
push eax
call fcn.00402e60
lea eax, [ebp - 0x1c]
push str.Color
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x4808cb
lea ecx, [ebp - 0x3f8]
call fcn.00421a30
xor edx, edx
mov dword [ebp - 4], eax
mov ecx, 7
mov dword [ebp - 0x9c], 0
xor edi, edi
mov dword [ebp - 0x98], ecx
mov word [ebp - 0xac], dx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], ecx
mov word [ebp - 0x94], dx
test eax, eax
jle 0x480877
nop dword [eax + eax]
push edi
lea ecx, [ebp - 0x3f8]
call fcn.004218d0
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x480741
sub edx, esi
lea ecx, [ebp - 0x4c]
sar edx, 1
push edx
push eax
call fcn.00402e60
push edi
lea ecx, [ebp - 0x3f8]
call fcn.00421920
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x480770
sub edx, esi
lea ecx, [ebp - 0x64]
sar edx, 1
push edx
push eax
call fcn.00402e60
cmp dword [ebp - 0x38], 8
lea esi, [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x3c]
cmovae esi, eax
cmp ebx, 4
jne 0x4807c3
mov ecx, str.name
mov edx, ebx
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x4807c0
add ecx, 2
sub edx, 1
jne 0x4807a7
lea ecx, [ebp - 0xac]
jmp 0x4807f7
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
lea esi, [ebp - 0x4c]
cmovae esi, eax
cmp ebx, 5
jne 0x48080b
mov eax, str.value
mov edx, ebx
sub esi, eax
nop dword [eax + eax]
mov cx, word [eax + esi]
cmp cx, word [eax]
jne 0x48080b
add eax, 2
sub edx, 1
jne 0x4807e0
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.00402e60
inc edi
cmp edi, dword [ebp - 4]
jl 0x480730
cmp dword [ebp - 0x9c], 0
je 0x480834
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00408570
add esp, 8
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x480871
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480867
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480c9f
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov ecx, dword [ebp - 0x98]
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp ecx, 8
jb 0x4808cb
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0xac]
mov eax, ecx
cmp edx, 0x1000
jb 0x4808c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480c9f
push edx
push ecx
call fcn.00532e3c
add esp, 8
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x3f8]
call fcn.00421800
mov esi, eax
lea edi, [ebp - 0x3f8]
mov ecx, 0x83
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x3f8]
call fcn.004218a0
test al, al
jne 0x4806a0
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x480939
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48092f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x480973
mov ecx, dword [ebp - 0x4c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480969
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
cmp ebx, 8
jb 0x4809ad
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x4809a3
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push ebx
push esi
call fcn.00532e3c
add esp, 8
lea ecx, [ebp - 0x1ec]
call fcn.00421c00
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x4809f2
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4809e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov edx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x480a40
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480a36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push edx
push ecx
call fcn.00532e3c
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 8
jb 0x480a7d
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x480a73
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push ebx
push esi
call fcn.00532e3c
add esp, 8
lea ecx, [ebp - 0x1ec]
call fcn.00421c00
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x480ac2
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480ab8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov edx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x480b34
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480b06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480ca9
push edx
push ecx
call fcn.00532e3c
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1ec]
call fcn.00421c00
lea ecx, [ebp - 0x34]
call fcn.00403070
lea ecx, [ebp - 0x7c]
call fcn.00403070
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5ba618
call fcn.00533284
add esp, 4
cmp dword [0x5ba618], 0xffffffff
jne 0x480379
xor eax, eax
mov dword [0x5ba5c8], 0
xorps xmm0, xmm0
mov dword [0x5ba5cc], 7
push 6
push str.center
mov ecx, 0x5ba5b8
mov word [0x5ba5b8], ax
mov dword [0x5ba5e0], eax
mov dword [0x5ba5e4], 7
mov word [0x5ba5d0], ax
mov dword [0x5ba5f8], eax
mov dword [0x5ba5fc], 7
mov word [0x5ba5e8], ax
mov byte [0x5ba540], al
movups xmmword [0x5ba544], xmm0
mov dword [0x5ba554], eax
mov dword [0x5ba558], eax
mov dword [0x5ba55c], 0x1010100
mov dword [0x5ba560], 0x10100
mov word [0x5ba564], 1
mov dword [0x5ba568], eax
mov dword [0x5ba56c], eax
mov dword [0x5ba570], eax
mov dword [0x5ba574], 0x1000101
mov dword [0x5ba578], 0x101
movups xmmword [0x5ba57c], xmm0
mov dword [0x5ba59c], eax
movups xmmword [0x5ba58c], xmm0
mov dword [0x5ba600], 0xffffffff
mov dword [0x5ba604], 0xffffffff
mov dword [0x5ba5a0], 0x48
mov byte [0x5ba5a4], al
mov dword [0x5ba5a8], 0x48
mov byte [0x5ba5ac], al
mov word [0x5ba610], ax
mov dword [0x5ba614], 0xff
mov byte [0x5ba5b4], al
call fcn.00402e60
push 8
push str.gray.xml
mov ecx, 0x5ba5d0
call fcn.00402e60
push 0
push 0x595304
mov ecx, 0x5ba5e8
call fcn.00402e60
push 0x5793f0
call fcn.005330b2
push 0x5ba618
call fcn.0053323a
add esp, 8
jmp 0x480379
call fcn.0055f150
call fcn.0055f150
call fcn.0055f150
int3