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

Disassembly:
push 0xffffffffffffffff
push 0x52b80c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
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 + 0x40], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], ebx
jbe 0x4619dc
call fcn.00500ad0
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x4619e9
call fcn.00500ad0
push esi
push ebx
push edi
push ebx
lea eax, [esp + 0x7c]
push eax
push ebx
call fcn.00463e80
xor edi, edi
mov dword [esp + 0x28], ebp
mov esi, edi
mov ebp, dword [esp + esi*4 + 0x3c]
cmp ebp, edi
mov dword [esp + 0x2c], ebp
je 0x462258
push ebp
call dword [0x5313c0]
test eax, eax
je 0x462258
call fcn.0040dcc0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x74]
mov dword [esp + 0x104], edi
call fcn.004fcc60
push 0x53709c
push ebp
mov byte [esp + 0x10c], 1
call fcn.00501b96
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4621da
push 1
push esi
lea ecx, [esp + 0x7c]
call fcn.004fccf0
push esi
mov bl, al
call fcn.00501c1b
add esp, 4
test bl, bl
je 0x4621da
lea ecx, [esp + 0x74]
call fcn.004fc180
push str.Skins
mov ecx, eax
call fcn.004fc110
mov edi, eax
test edi, edi
mov dword [esp + 0x6c], edi
je 0x4621da
mov ecx, edi
call fcn.004fc0e0
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x462156
jmp 0x461ac4
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x44]
call fcn.00430980
cmp ebp, dword [esp + 0x38]
mov byte [esp + 0x104], 2
jne 0x461ae5
mov dword [esp + 0x60], 1
jmp 0x461af3
cmp ebp, dword [esp + 0x34]
jne 0x461af3
mov dword [esp + 0x60], 0
mov ecx, dword [esi + 0x4c]
lea eax, [esi + 0x2c]
cmp ecx, eax
je 0x461fce
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x461fce
lea ecx, [ecx]
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 0x461b40
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xc4]
call fcn.0040dd70
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 0x461b82
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xe0]
call fcn.0040dd70
mov byte [esp + 0x104], 4
cmp dword [esp + 0xf0], 0x10
jb 0x461bbc
mov esi, dword [esp + 0xdc]
cmp esi, ebp
jne 0x461bc3
xor ebp, ebp
jmp 0x461c17
lea esi, [esp + 0xdc]
mov ebx, dword [0x531340]
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.005002a8
mov ebp, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push ebp
call fcn.00508d80
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 0x461c2a
mov eax, 8
mov edx, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x461c46
lea edx, [esp + 0xc0]
mov ecx, str.FileName
call fcn.00430590
test eax, eax
jne 0x461c92
cmp esi, 8
jb 0x461c97
cmp esi, 8
setne al
test eax, eax
jne 0x461c92
test ebp, ebp
je 0x461c7f
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461c70
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x54]
call fcn.004026c0
mov esi, dword [esp + 0xd0]
cmp esi, 8
jae 0x461c9b
mov eax, esi
jmp 0x461ca0
mov eax, 8
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x461cb7
lea edx, [esp + 0xc0]
mov ecx, 0x543750
call fcn.00430590
test eax, eax
jne 0x461d02
cmp esi, 8
jb 0x461d07
cmp esi, 8
setne al
test eax, eax
jne 0x461d02
test ebp, ebp
je 0x461cef
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461ce0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x58]
call fcn.004026c0
mov esi, dword [esp + 0xd0]
cmp esi, 8
jae 0x461d0b
mov eax, esi
jmp 0x461d10
mov eax, 8
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x461d27
lea edx, [esp + 0xc0]
mov ecx, str.FilePath
call fcn.00430590
test eax, eax
jne 0x461d72
cmp esi, 8
jb 0x461d72
cmp esi, 8
setne al
test eax, eax
jne 0x461d72
test ebp, ebp
je 0x461d5f
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461d50
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x50]
call fcn.004026c0
mov esi, dword [esp + 0xd0]
cmp esi, 4
mov eax, esi
jb 0x461d7e
mov eax, 4
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x461d95
lea edx, [esp + 0xc0]
mov ecx, str.GUID
call fcn.00430590
test eax, eax
jne 0x461de2
cmp esi, 4
jb 0x461de2
cmp esi, 4
setne al
test eax, eax
jne 0x461de2
test ebp, ebp
je 0x461dcf
mov eax, ebp
lea edx, [eax + 2]
jmp 0x461dc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461dc0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x4c]
call fcn.004026c0
mov esi, dword [esp + 0xd0]
cmp esi, 7
mov eax, esi
jb 0x461dee
mov eax, 7
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x461e05
lea edx, [esp + 0xc0]
mov ecx, str.IsFrame
call fcn.00430590
xor ebx, ebx
cmp eax, ebx
jne 0x461e3d
cmp esi, 7
jb 0x461e3d
xor eax, eax
cmp esi, 7
setne al
cmp eax, ebx
jne 0x461e3d
push 0xa
push ebx
push ebp
call fcn.0050095a
mov esi, dword [esp + 0xdc]
add esp, 0xc
mov dword [esp + 0x5c], eax
cmp esi, 9
mov eax, esi
jb 0x461e49
mov eax, 9
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x461e60
lea edx, [esp + 0xc0]
mov ecx, str.EnableUse
call fcn.00430590
cmp eax, ebx
jne 0x461e96
cmp esi, 9
jb 0x461e96
xor eax, eax
cmp esi, 9
setne al
cmp eax, ebx
jne 0x461e96
push 0xa
push ebx
push ebp
call fcn.0050095a
mov esi, dword [esp + 0xdc]
add esp, 0xc
mov dword [esp + 0x58], eax
cmp esi, 0xa
mov eax, esi
jb 0x461ea2
mov eax, 0xa
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x461eb9
lea edx, [esp + 0xc0]
mov ecx, str.LastModify
call fcn.00430590
cmp eax, ebx
jne 0x461eef
cmp esi, 0xa
jb 0x461eef
xor eax, eax
cmp esi, 0xa
setne al
cmp eax, ebx
jne 0x461eef
push 0xa
push ebx
push ebp
call fcn.0050095a
mov esi, dword [esp + 0xdc]
add esp, 0xc
mov dword [esp + 0x68], eax
cmp esi, 8
mov eax, esi
jb 0x461efb
mov eax, 8
cmp dword [esp + 0xd4], edi
mov edx, dword [esp + 0xc0]
jae 0x461f12
lea edx, [esp + 0xc0]
mov ecx, str.SkinType
call fcn.00430590
cmp eax, ebx
jne 0x461f41
cmp esi, 8
jb 0x461f41
xor eax, eax
cmp esi, 8
setne al
cmp eax, ebx
jne 0x461f41
push 0xa
push ebx
push ebp
call fcn.0050095a
add esp, 0xc
mov dword [esp + 0x64], eax
cmp ebp, ebx
je 0x461f4e
push ebp
call fcn.00500319
add esp, 4
cmp dword [esp + 0xf0], edi
jb 0x461f67
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.004ffbbe
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 0x461fa3
mov edx, dword [esp + 0xc0]
push edx
call fcn.004ffbbe
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.004fc300
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x461b10
mov esi, dword [esp + 0x4c]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x461ff9
cmp eax, dword [esi]
jne 0x461ff9
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x462034
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x462297
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004ffedf
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [esp + 0x14], eax
mov byte [esp + 0x104], 5
mov edi, dword [eax - 0xc]
test edi, edi
jle 0x4620aa
lea ecx, [edi - 1]
test ecx, ecx
jl 0x46229c
cmp ecx, edi
jg 0x46229c
movzx ecx, word [eax + ecx*2]
cmp cx, 0x5c
je 0x4620aa
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
lea esi, [edi + 1]
sub ecx, esi
or ecx, edx
jge 0x46208a
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00402120
mov eax, dword [esp + 0x14]
test esi, esi
mov word [eax + edi*2], 0x5c
jl 0x46229c
cmp esi, dword [eax - 8]
jg 0x46229c
mov dword [eax - 0xc], esi
mov word [eax + esi*2], 0
mov eax, dword [esp + 0x50]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00411670
mov ebx, dword [esp + 0x14]
push ebx
call dword [0x5313c0]
test eax, eax
je 0x4620dc
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x44]
push edx
call fcn.004637f0
jmp 0x462104
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0042dd20
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0042dd60
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
lea eax, [ebx - 0x10]
mov byte [esp + 0x104], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462128
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x104], 1
call fcn.00430a70
mov ecx, dword [esp + 0x24]
call fcn.004fc150
test eax, eax
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
jne 0x461ac0
mov edi, dword [esp + 0x6c]
cmp dword [esp + 0x20], 0
jbe 0x4621da
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x462187
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.004fbfe0
mov eax, dword [esp + 0x1c]
cmp esi, eax
jne 0x462183
call fcn.00500ad0
mov eax, dword [esp + 0x1c]
mov esi, dword [esi]
jmp 0x462163
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 0x4621b3
mov esi, dword [ecx]
push ecx
call fcn.004ffbbe
add esp, 4
cmp esi, dword [esp + 0x1c]
mov ecx, esi
jne 0x4621a0
push 0x536e98
push ebp
call fcn.00501b96
mov esi, eax
add esp, 8
test esi, esi
je 0x4621da
push esi
lea ecx, [esp + 0x78]
call fcn.004fc210
push esi
call fcn.00501c1b
add esp, 4
mov byte [esp + 0x104], 0
mov eax, dword [esp + 0xa8]
cmp eax, 0x574e80
mov dword [esp + 0x74], vtable.TiXmlDocument.0
je 0x462201
push eax
call fcn.00500319
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004fc800
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 edi, edi
cmp eax, ecx
mov dword [esp + 0x20], edi
je 0x462247
mov esi, dword [eax]
push eax
call fcn.004ffbbe
mov ecx, dword [esp + 0x20]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x462232
push ecx
call fcn.004ffbbe
mov esi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x1c], edi
add esi, 1
cmp esi, 2
mov dword [esp + 0x28], esi
jl 0x461a00
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.004ff939
add esp, 0xf4
ret 4
call fcn.004020a0
push 0x80070057
call fcn.004026a0
int3