Function at 0x402470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5047b3
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x55300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xf8], edi
cmp dword [ebp + 8], 0
je 0x402511
mov dword [edi], 0
lea eax, [ebp - 0x58]
push eax
call fcn.00438a50
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 0xf
jb 0x40251e
lea eax, [ecx + 0xf]
mov edi, esi
mov dword [ebp - 0xf4], eax
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x4024ea
mov edi, dword [esi]
push 0x1e
lea eax, [edi + ecx*2]
push 0x52abd4
push eax
call fcn.004b5d30
mov eax, dword [ebp - 0xf4]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
mov edi, dword [ebp - 0xf8]
jmp 0x40253d
cmp dword [edi], 0
je 0x4024b1
lea eax, [edi + 0x7c]
jmp 0x402d99
push 0xf
push 0x52abd4
mov byte [ebp - 0xf4], 0
mov ecx, esi
push dword [ebp - 0xf4]
push 0xf
call fcn.00404560
mov esi, eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete byte [ebp - 0xed]
cmp edx, 8
jb 0x4025c4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x402619
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40260f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402dbb
push edx
push ecx
call fcn.00481e07
add esp, 8
cmp byte [ebp - 0xed], 0
je 0x402627
call fcn.004034f0
call dword [sym.imp.rime.dll_rime_get_api]
mov dword [ebp - 0x100], eax
test eax, eax
je 0x402516
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], 0
mov eax, dword [eax + 0x13c]
push ecx
push str.skin_list
call eax
add esp, 8
test eax, eax
lea eax, [edi + 0x7c]
je 0x402d99
mov edi, dword [eax + 4]
mov esi, dword [eax]
cmp esi, edi
je 0x402689
mov ecx, esi
call fcn.00402230
add esi, 0x78
cmp esi, edi
jne 0x402670
mov eax, dword [ebp - 0xf8]
add eax, 0x7c
mov esi, dword [eax]
mov edi, dword [ebp - 0x100]
mov dword [eax + 4], esi
lea eax, [ebp - 0xec]
push 0x52ac00
push eax
mov eax, dword [edi + 0x110]
call eax
mov ecx, eax
add esp, 8
xor eax, eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xf4], eax
test ecx, ecx
je 0x402d78
xor ecx, ecx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], cx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], cx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], cx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], cx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], cx
mov ecx, eax
mov dword [ebp - 4], 1
lea esi, [ebp - 0x2b]
mov dword [ebp - 0xfc], ecx
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xfc]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xfc], eax
test eax, eax
jne 0x402740
xor ecx, ecx
lea eax, [ebp - 0x2b]
mov dword [ebp - 0x18], ecx
mov edx, 0xf
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x28], cl
cmp esi, eax
je 0x402798
sub eax, esi
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00406070
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, edx
mov byte [ebp - 4], 2
sub eax, ecx
cmp eax, 0xa
jb 0x402826
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 0xa]
cmovae esi, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmp esi, 0x52ac16
jae 0x4027e1
lea eax, [esi + ecx]
cmp eax, str.skinlist__
jb 0x4027e1
cmp esi, str.skinlist__
ja 0x4027d7
xor edi, edi
jmp 0x4027e6
mov edi, esi
sub edi, str.skinlist__
jmp 0x4027e6
mov edi, 0xa
lea eax, [ecx + 1]
push eax
lea eax, [esi + 0xa]
push esi
push eax
call fcn.004b5d30
push edi
push str.skinlist__
push esi
call fcn.004b57b0
mov eax, 0xa
sub eax, edi
push eax
lea eax, [edi + 0x52ac16]
push eax
lea eax, [esi + edi]
push eax
call fcn.004b57b0
mov edi, dword [ebp - 0x100]
lea eax, [ebp - 0x28]
add esp, 0x24
jmp 0x402842
push 0xa
sub esp, 8
mov byte [ebp - 0x104], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x104]
push 0xa
call fcn.004059f0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movq qword [ebp - 0x48], xmm0
mov byte [eax], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40289c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402892
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
push str._name
lea edx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004040a0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x4028cd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [edi + 0xac]
call eax
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 0x10
jb 0x40291a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402910
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test esi, esi
je 0x402d19
push 0x2000
push 0
push 0x560800
call fcn.004b62b0
add esp, 0xc
push 0xfff
push 0x560800
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x560800
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402970
sub ecx, edx
sar ecx, 1
push ecx
push 0x560800
lea ecx, [ebp - 0xa0]
call fcn.00406c50
push str._guid
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.004040a0
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x4029af
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [edi + 0xac]
call eax
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 0x10
jb 0x4029fc
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4029f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test esi, esi
je 0x402d19
push 0x2000
push 0
push 0x560800
call fcn.004b62b0
add esp, 0xc
push 0xfff
push 0x560800
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x560800
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a50
sub ecx, edx
sar ecx, 1
push ecx
push 0x560800
lea ecx, [ebp - 0xd0]
call fcn.00406c50
push str._path
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.004040a0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x402a8f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [edi + 0xac]
call eax
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 0x10
jb 0x402adc
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ad2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test esi, esi
je 0x402d19
mov ecx, esi
call fcn.00402080
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402b02
sub edx, esi
lea ecx, [ebp - 0x88]
sar edx, 1
push edx
push eax
call fcn.00406c50
push str._time
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.004040a0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x402b3d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [edi + 0xac]
call eax
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 0x10
jb 0x402b8a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402b80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test esi, esi
je 0x402d19
mov ecx, esi
call fcn.00402080
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402bb0
sub edx, esi
lea ecx, [ebp - 0xb8]
sar edx, 1
push edx
push eax
call fcn.00406c50
push str._type
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0xe8]
call fcn.004040a0
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x402bee
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [edi + 0xac]
call eax
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0xd4]
mov esi, eax
cmp edx, 0x10
jb 0x402c41
mov ecx, dword [ebp - 0xe8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402c37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
test esi, esi
je 0x402d19
mov ecx, esi
call fcn.00402080
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402c70
sub edx, esi
lea ecx, [ebp - 0x70]
sar edx, 1
push edx
push eax
call fcn.00406c50
mov eax, dword [ebp - 0xf8]
mov esi, dword [eax + 0x80]
cmp dword [eax + 0x84], esi
je 0x402d09
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xfc], esi
push eax
mov ecx, esi
call fcn.00403b80
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0x18]
call fcn.00403b80
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [esi + 0x30]
call fcn.00403b80
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [esi + 0x48]
call fcn.00403b80
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [esi + 0x60]
call fcn.00403b80
mov ecx, dword [ebp - 0xf8]
add dword [ecx + 0x80], 0x78
jmp 0x402d19
lea ecx, [ebp - 0xd0]
push ecx
push esi
lea ecx, [eax + 0x7c]
call fcn.004042c0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x402d4d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.00481e07
add esp, 8
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0xffffffff
call fcn.00402230
mov eax, dword [ebp - 0xf4]
inc eax
mov dword [ebp - 0xf4], eax
cmp eax, dword [ebp - 0x108]
jb 0x4026c1
lea eax, [ebp - 0xec]
push eax
mov eax, dword [edi + 0x98]
call eax
mov ecx, dword [ebp - 0xf8]
add esp, 4
mov dword [ecx], 1
lea eax, [ecx + 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482225
mov esp, ebp
pop ebp
ret 4
call fcn.004c022b
call fcn.004c022b
int3