Function at 0x47fef0
Capabilities:
Check if file exists
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a4e7c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10c]
mov esi, dword [eax + 0x38]
lea ebx, [eax + 0x30]
xor ebp, ebp
cmp dword [ebx + 4], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
jbe 0x47ff5c
call fcn.00578ff3
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x47ff69
call fcn.00578ff3
push esi
push ebx
push edi
push ebx
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00483500
xor edi, edi
mov dword [esp + 0x38], edi
mov edi, edi
mov esi, dword [esp + edi*4 + 0x40]
cmp esi, ebp
mov dword [esp + 0x2c], esi
je 0x48077c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48077c
call fcn.0041ddc0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0x104], ebp
call fcn.00574010
push 0x5c0530
push esi
mov byte [esp + 0x10c], 1
call fcn.0057b8be
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4806fe
push 1
push esi
lea ecx, [esp + 0x7c]
call fcn.005740a0
push esi
mov bl, al
call fcn.0057b943
add esp, 4
test bl, bl
je 0x4806fe
lea ecx, [esp + 0x74]
call fcn.00573530
push str.Skins
mov ecx, eax
call fcn.005734c0
cmp eax, ebp
mov dword [esp + 0x28], eax
je 0x4806fe
mov ecx, eax
call fcn.00573490
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x480668
lea edi, [esp + 0x4c]
call fcn.004406e0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x34]
mov byte [esp + 0x104], 2
jne 0x480056
mov dword [esp + 0x68], 1
jmp 0x480064
cmp eax, dword [esp + 0x30]
jne 0x480064
mov dword [esp + 0x68], 0
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp + 0x2c]
cmp ecx, eax
je 0x480542
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x480542
mov edi, edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x14]
add ecx, 8
mov ebx, 0xf
xor ebp, ebp
mov eax, ecx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], ebp
mov byte [esp + 0xc0], 0
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4800b0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xc4]
call fcn.00405f50
mov byte [esp + 0x104], 3
mov ecx, dword [edi + 0x18]
add ecx, 8
mov eax, ecx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xec], ebp
mov byte [esp + 0xdc], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4800f2
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xe0]
call fcn.00405f50
mov byte [esp + 0x104], 4
cmp dword [esp + 0xf0], 0x10
jb 0x48012c
mov esi, dword [esp + 0xdc]
cmp esi, ebp
jne 0x480133
xor ebp, ebp
jmp 0x480187
lea esi, [esp + 0xdc]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057740a
mov ebp, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push ebp
call fcn.00580260
add esp, 0xc
push edi
push ebp
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov esi, dword [esp + 0xd0]
cmp esi, 8
mov eax, esi
jb 0x48019a
mov eax, 8
mov edx, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x4801b6
lea edx, [esp + 0xc0]
mov ecx, str.FileName
call fcn.004403d0
test eax, eax
jne 0x480202
cmp esi, 8
jb 0x480207
cmp esi, 8
setne al
test eax, eax
jne 0x480202
test ebp, ebp
je 0x4801ef
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4801e0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x5c]
call fcn.00404050
mov esi, dword [esp + 0xd0]
cmp esi, 8
jae 0x48020b
mov eax, esi
jmp 0x480210
mov eax, 8
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x480227
lea edx, [esp + 0xc0]
mov ecx, 0x5c0638
call fcn.004403d0
test eax, eax
jne 0x480272
cmp esi, 8
jb 0x480277
cmp esi, 8
setne al
test eax, eax
jne 0x480272
test ebp, ebp
je 0x48025f
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480250
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x60]
call fcn.00404050
mov esi, dword [esp + 0xd0]
cmp esi, 8
jae 0x48027b
mov eax, esi
jmp 0x480280
mov eax, 8
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x480297
lea edx, [esp + 0xc0]
mov ecx, str.FilePath
call fcn.004403d0
test eax, eax
jne 0x4802e2
cmp esi, 8
jb 0x4802e2
cmp esi, 8
setne al
test eax, eax
jne 0x4802e2
test ebp, ebp
je 0x4802cf
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4802c0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x58]
call fcn.00404050
mov esi, dword [esp + 0xd0]
cmp esi, 4
mov eax, esi
jb 0x4802ee
mov eax, 4
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x480305
lea edx, [esp + 0xc0]
mov ecx, str.GUID
call fcn.004403d0
test eax, eax
jne 0x480352
cmp esi, 4
jb 0x480352
cmp esi, 4
setne al
test eax, eax
jne 0x480352
test ebp, ebp
je 0x48033f
mov eax, ebp
lea edx, [eax + 2]
jmp 0x480330
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480330
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x54]
call fcn.00404050
mov esi, dword [esp + 0xd0]
cmp esi, 7
mov eax, esi
jb 0x48035e
mov eax, 7
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x480375
lea edx, [esp + 0xc0]
mov ecx, str.IsFrame
call fcn.004403d0
xor ebx, ebx
cmp eax, ebx
jne 0x4803ad
cmp esi, 7
jb 0x4803ad
xor eax, eax
cmp esi, 7
setne al
cmp eax, ebx
jne 0x4803ad
push 0xa
push ebx
push ebp
call fcn.00578c22
mov esi, dword [esp + 0xdc]
add esp, 0xc
mov dword [esp + 0x64], eax
cmp esi, 9
mov eax, esi
jb 0x4803b9
mov eax, 9
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x4803d0
lea edx, [esp + 0xc0]
mov ecx, str.EnableUse
call fcn.004403d0
cmp eax, ebx
jne 0x480406
cmp esi, 9
jb 0x480406
xor eax, eax
cmp esi, 9
setne al
cmp eax, ebx
jne 0x480406
push 0xa
push ebx
push ebp
call fcn.00578c22
mov esi, dword [esp + 0xdc]
add esp, 0xc
mov dword [esp + 0x60], eax
cmp esi, 0xa
mov eax, esi
jb 0x480412
mov eax, 0xa
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x480429
lea edx, [esp + 0xc0]
mov ecx, str.LastModify
call fcn.004403d0
cmp eax, ebx
jne 0x48045f
cmp esi, 0xa
jb 0x48045f
xor eax, eax
cmp esi, 0xa
setne al
cmp eax, ebx
jne 0x48045f
push 0xa
push ebx
push ebp
call fcn.00578c22
mov esi, dword [esp + 0xdc]
add esp, 0xc
mov dword [esp + 0x70], eax
cmp esi, 8
mov eax, esi
jb 0x48046b
mov eax, 8
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x480482
lea edx, [esp + 0xc0]
mov ecx, str.SkinType
call fcn.004403d0
cmp eax, ebx
jne 0x4804b1
cmp esi, 8
jb 0x4804b1
xor eax, eax
cmp esi, 8
setne al
cmp eax, ebx
jne 0x4804b1
push 0xa
push ebx
push ebp
call fcn.00578c22
add esp, 0xc
mov dword [esp + 0x6c], eax
cmp ebp, ebx
je 0x4804be
push ebp
call fcn.0057832c
add esp, 4
cmp dword [esp + 0xf0], edi
jb 0x4804d7
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.00578327
add esp, 4
mov esi, 0xf
mov byte [esp + 0x104], 2
cmp dword [esp + 0xd4], edi
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], 0
jb 0x480513
mov edx, dword [esp + 0xc0]
push edx
call fcn.00578327
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], 0
call fcn.005736b0
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x480080
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
call fcn.00403ce0
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x104], 5
mov edi, dword [eax - 0xc]
test edi, edi
jle 0x4805c4
lea ecx, [edi - 1]
test ecx, ecx
jl 0x4807bb
cmp ecx, edi
jg 0x4807bb
movzx ecx, word [eax + ecx*2]
cmp cx, 0x5c
je 0x4805c4
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
lea esi, [edi + 1]
sub ecx, esi
or ecx, edx
jge 0x4805a4
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00403d50
mov eax, dword [esp + 0x14]
test esi, esi
mov word [eax + edi*2], 0x5c
jl 0x4807bb
cmp esi, dword [eax - 8]
jg 0x4807bb
mov dword [eax - 0xc], esi
mov word [eax + esi*2], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403fc0
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4805f6
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
push ecx
call fcn.00483100
jmp 0x48061e
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call fcn.0041dde0
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.005260e0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
lea eax, [ebx - 0x10]
mov byte [esp + 0x104], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x480642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x104], 1
call fcn.004407d0
mov ecx, ebp
call fcn.00573500
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x24], ebp
jne 0x480031
cmp dword [esp + 0x20], 0
jbe 0x4806fe
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov edi, dword [esp + 0x28]
lea ecx, [ecx]
cmp esi, eax
je 0x4806a4
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.00573390
mov eax, dword [esp + 0x1c]
cmp esi, eax
jne 0x4806a0
call fcn.00578ff3
mov eax, dword [esp + 0x1c]
mov esi, dword [esi]
jmp 0x480680
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
je 0x4806d3
lea ecx, [ecx]
mov esi, dword [ecx]
push ecx
call fcn.00578327
add esp, 4
cmp esi, dword [esp + 0x1c]
mov ecx, esi
jne 0x4806c0
mov edx, dword [esp + 0x2c]
push 0x5c0538
push edx
call fcn.0057b8be
mov esi, eax
add esp, 8
test esi, esi
je 0x4806fe
push esi
lea ecx, [esp + 0x78]
call fcn.005735c0
push esi
call fcn.0057b943
add esp, 4
mov byte [esp + 0x104], 0
mov eax, dword [esp + 0xa8]
cmp eax, 0x5fcca0
mov dword [esp + 0x74], vtable.TiXmlDocument.0
je 0x480725
push eax
call fcn.0057832c
add esp, 4
lea ecx, [esp + 0x74]
call fcn.00573bb0
mov dword [esp + 0x104], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
cmp eax, ecx
mov dword [esp + 0x20], ebp
je 0x48076b
mov esi, dword [eax]
push eax
call fcn.00578327
mov ecx, dword [esp + 0x20]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x480756
push ecx
call fcn.00578327
mov edi, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x1c], ebp
add edi, 1
cmp edi, 2
mov dword [esp + 0x38], edi
jl 0x47ff80
mov eax, 1
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.005787fd
add esp, 0xf4
ret 4
push 0x80070057
call fcn.00404550
int3