Function at 0x481370
Capabilities:
Check for peb beingdebugged flag
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ee169
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
xor edx, edx
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov word [esp + 0x38], cx
mov dword [esp + 0x94], edx
mov dword [esp + 0x68], eax
xor eax, eax
mov word [esp + 0x54], ax
mov eax, ebx
mov dword [esp + 0x64], edx
lea esi, [eax + 2]
jmp 0x4813f0
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x4813f0
sub eax, esi
sar eax, 1
push eax
push ebx
lea esi, [esp + 0x58]
call fcn.00401760
mov ecx, esi
push ecx
mov ecx, str.touming
mov byte [esp + 0x98], 1
call fcn.0041ced0
mov esi, 8
test eax, eax
jne 0x4814dc
mov edi, str._res_touming.data
lea ecx, [esp + 0x14]
call fcn.0047fda0
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0xa0], 2
call fcn.00401850
mov byte [esp + 0x94], 1
cmp dword [esp + 0x2c], esi
jb 0x48146b
mov edx, dword [esp + 0x18]
push edx
call fcn.004c8f17
add esp, 4
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x481479
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4814dc
push 0xffffffffffffffff
xor ebx, ebx
xor eax, eax
mov edi, 7
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
push ebx
lea ecx, [esp + 0x3c]
mov word [ebp + 4], ax
push ecx
mov eax, ebp
call fcn.00401850
cmp dword [esp + 0x68], esi
jb 0x4814b9
mov edx, dword [esp + 0x54]
push edx
call fcn.004c8f17
add esp, 4
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
xor eax, eax
mov word [esp + 0x54], ax
cmp dword [esp + 0x4c], esi
jb 0x4816d2
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x4816ca
mov ecx, str.Resource.2.0.0.00_theme_
lea edi, [esp + 0x14]
call fcn.0047e4c0
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0xa0], 3
call fcn.00401850
mov byte [esp + 0x94], 1
cmp dword [esp + 0x2c], esi
jb 0x48151c
mov edx, dword [esp + 0x18]
push edx
call fcn.004c8f17
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x481521
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x3c]
call fcn.004088a0
push 5
push 0x50b740
lea eax, [esp + 0x3c]
call fcn.004088a0
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x481559
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4815a4
mov ebx, 7
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], edi
push edi
lea ecx, [esp + 0x3c]
mov word [ebp + 4], ax
push ecx
mov eax, ebp
call fcn.00401850
cmp dword [esp + 0x68], esi
jb 0x481597
mov edx, dword [esp + 0x54]
push edx
call fcn.004c8f17
add esp, 4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
jmp 0x4814c1
mov ecx, str.Resource.2.0.0.00LocalTheme_
lea edi, [esp + 0x14]
call fcn.0047e4c0
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0xa0], 4
call fcn.00401850
mov byte [esp + 0x94], 1
cmp dword [esp + 0x2c], esi
jb 0x4815e4
mov edx, dword [esp + 0x18]
push edx
call fcn.004c8f17
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4815f0
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x3c]
call fcn.004088a0
push 5
push 0x50b740
lea eax, [esp + 0x3c]
call fcn.004088a0
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x481628
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 7
test eax, eax
jne 0x481569
xor edx, edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edi
mov word [esp + 0x70], dx
mov byte [esp + 0x94], 5
push 0xffffffffffffffff
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], edi
push edi
lea ecx, [esp + 0x74]
mov word [ebp + 4], ax
push ecx
mov eax, ebp
call fcn.00401850
cmp dword [esp + 0x84], esi
jb 0x481688
mov edx, dword [esp + 0x70]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edi
mov word [esp + 0x70], ax
cmp dword [esp + 0x68], esi
jb 0x4816b0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], dx
cmp dword [esp + 0x4c], esi
jb 0x4816d2
mov eax, dword [esp + 0x38]
push eax
call fcn.004c8f17
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004c8f08
add esp, 0x84
ret