Function at 0x480cc0
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 [0x5bcfd0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5bc624]
cmp eax, dword [ecx + 8]
jg 0x4814ad
cmp dword [0x5bc5e4], 0
push ebx
push esi
push edi
je 0x4814a4
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 0x597628
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.004535a0
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 0x480db5
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480dab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481615
push edx
push ecx
call fcn.005348bc
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 0x480e09
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 0x480e73
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480e69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161a
push edx
push ecx
call fcn.005348bc
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 0x480ea2
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 0x481494
test esi, 0x10
jne 0x481494
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 0x481489
lea eax, [ebp - 0x604]
push eax
lea ecx, [ebp - 0x1ec]
call fcn.004220c0
lea ecx, [ebp - 0x604]
call fcn.004218a0
test al, al
je 0x481489
cmp dword [edi + 0x14], 8
jb 0x480f3e
mov edi, dword [edi]
push edi
push str.LoadTheme:_s_n
call fcn.00472530
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 0x480f72
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 0x4813b9
mov ecx, 0x59d938
mov edx, 6
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x4813b9
add ecx, 2
sub edx, 1
jne 0x480fb0
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 0x4812e9
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 0x481020
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 0x48123b
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 0x4811e7
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 0x4810b1
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 0x4810e0
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 0x481133
mov ecx, str.name
mov edx, ebx
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x481130
add ecx, 2
sub edx, 1
jne 0x481117
lea ecx, [ebp - 0xac]
jmp 0x481167
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
lea esi, [ebp - 0x4c]
cmovae esi, eax
cmp ebx, 5
jne 0x48117b
mov eax, str.value
mov edx, ebx
sub esi, eax
nop dword [eax + eax]
mov cx, word [eax + esi]
cmp cx, word [eax]
jne 0x48117b
add eax, 2
sub edx, 1
jne 0x481150
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 0x4810a0
cmp dword [ebp - 0x9c], 0
je 0x4811a4
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 0x4811e1
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4811d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481615
push edx
push ecx
call fcn.005348bc
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 0x48123b
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0xac]
mov eax, ecx
cmp edx, 0x1000
jb 0x481231
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481615
push edx
push ecx
call fcn.005348bc
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 0x481010
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x4812a9
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48129f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push edx
push ecx
call fcn.005348bc
add esp, 8
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4812e3
mov ecx, dword [ebp - 0x4c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4812d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push edx
push ecx
call fcn.005348bc
add esp, 8
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
cmp ebx, 8
jb 0x48131d
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x481313
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push ebx
push esi
call fcn.005348bc
add esp, 8
lea ecx, [ebp - 0x1ec]
call fcn.00421c00
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x481362
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x481358
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push edx
push ecx
call fcn.005348bc
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 0x4813b0
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4813a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push edx
push ecx
call fcn.005348bc
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 8
jb 0x4813ed
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x4813e3
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push ebx
push esi
call fcn.005348bc
add esp, 8
lea ecx, [ebp - 0x1ec]
call fcn.00421c00
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x481432
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x481428
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push edx
push ecx
call fcn.005348bc
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 0x4814a4
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x481476
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48161f
push edx
push ecx
call fcn.005348bc
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 0x5bc624
call fcn.00534d04
add esp, 4
cmp dword [0x5bc624], 0xffffffff
jne 0x480ce9
xor eax, eax
mov dword [0x5bc5cc], 0
xorps xmm0, xmm0
mov dword [0x5bc5d0], 7
movups xmmword [0x5bc544], xmm0
push 6
movups xmmword [0x5bc580], xmm0
push str.center
movups xmmword [0x5bc590], xmm0
mov ecx, 0x5bc5bc
mov word [0x5bc5bc], ax
movaps xmm0, xmmword [0x57f4b0]
mov dword [0x5bc5e4], eax
mov dword [0x5bc5e8], 7
mov word [0x5bc5d4], ax
mov dword [0x5bc5fc], eax
mov dword [0x5bc600], 7
mov word [0x5bc5ec], ax
mov byte [0x5bc540], al
mov dword [0x5bc554], eax
mov dword [0x5bc558], eax
mov dword [0x5bc55c], 0x1010100
mov dword [0x5bc560], 0x10100
mov word [0x5bc564], 1
mov dword [0x5bc568], eax
mov dword [0x5bc56c], eax
mov dword [0x5bc570], eax
mov dword [0x5bc574], 0x10101
mov dword [0x5bc578], 0x10101
mov word [0x5bc57c], ax
mov byte [0x5bc57e], al
mov dword [0x5bc5a0], eax
movups xmmword [0x5bc604], xmm0
mov dword [0x5bc5a4], 0x48
mov byte [0x5bc5a8], al
mov dword [0x5bc5ac], 0x48
mov byte [0x5bc5b0], al
mov word [0x5bc61c], ax
mov dword [0x5bc620], 0xff
mov word [0x5bc5b8], ax
call fcn.00402e60
push 8
push str.gray.xml
mov ecx, 0x5bc5d4
call fcn.00402e60
push 0
push 0x597624
mov ecx, 0x5bc5ec
call fcn.00402e60
push 0x57aeb0
call fcn.00534b32
push 0x5bc624
call fcn.00534cba
add esp, 8
jmp 0x480ce9
call fcn.00560be0
call fcn.00560be0
call fcn.00560be0
int3