Function at 0x40f270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x514f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8b0]
mov ebp, dword [esp + 0x8b8]
mov edi, dword [esp + 0x8bc]
mov esi, ecx
mov ebx, edx
lea ecx, [esp + 0x2dc]
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], edi
call fcn.004174b0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x8ac], 0
call fcn.0043a040
xor eax, eax
mov dword [esp + 0x60], fcn.004ed893
mov dword [esp + 0x64], fcn.004ee443
mov dword [esp + 0x68], fcn.004ed7b6
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x1fff8
mov dword [esp + 0x5c], vtable.t_heap.0
mov dword [esp + 0x74], 1
mov byte [esp + 0x8a8], 1
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], al
mov byte [edi], al
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
push esi
call fcn.004117e0
mov ecx, eax
call fcn.004a2940
test al, al
jne 0x40f3c5
mov ecx, esi
call fcn.00416430
push 0x546874
push 0x549858
mov edx, eax
call fcn.00417ed0
add esp, 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x8a8], 0
call fcn.00438a20
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
cmp byte [esp + 0x3f8], 0
jne 0x40f3be
mov eax, dword [esp + 0x2e4]
lea edx, [esp + 0x2e8]
cmp eax, edx
je 0x40f3be
push eax
call fcn.004ed7b6
add esp, 4
xor al, al
jmp 0x40fb13
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
test eax, eax
je 0x40f3e7
mov eax, ecx
neg eax
sbb eax, eax
and eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
test edx, edx
je 0x40fac6
test ecx, ecx
je 0x40fac6
xor eax, eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], eax
test edx, edx
jle 0x40fa83
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x40f5fd
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ebx, [esi + 4]
push 0
mov ecx, ebx
call eax
mov ebp, dword [eax]
lea ecx, [esp + 0x8c]
call fcn.004174b0
mov eax, ebp
lea edx, [esp + 0x8c]
call fcn.00417710
push str..swf
lea ecx, [esp + 0x90]
mov byte [esp + 0x8ac], 3
call fcn.0041faa0
push eax
call fcn.004ecf82
add esp, 8
test eax, eax
jne 0x40f5c5
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x40f48d
mov edx, dword [esi + 0x14]
mov dword [esp + 0x1c], edx
mov edi, edx
mov ebp, dword [esi + 0x10]
xor eax, eax
cmp ebp, eax
jne 0x40f4af
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8a8], 1
call fcn.00417650
jmp 0x40f5fd
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
push edi
push ebp
lea eax, [esp + 0x84]
call fcn.0042a180
push edi
push ebp
call fcn.00475450
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f4ff
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov dword [esp + 0x78], eax
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea esi, [esp + 0x52c]
call fcn.00406010
mov byte [esp + 0x8a8], 4
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x7c]
push ecx
lea edi, [esp + 0x534]
mov dword [esp + 0x530], eax
call fcn.00424970
mov edx, dword [esp + 0x44]
add esp, 4
push edx
mov eax, esi
call fcn.004060c0
test al, al
jne 0x40f562
mov eax, esi
call fcn.00406450
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8a8], 1
call fcn.00417650
jmp 0x40f5fd
cmp dword [esp + 0x77c], 0
je 0x40f59f
cmp dword [esp + 0x658], 0
je 0x40f59f
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0
mov ecx, ebx
call edx
mov eax, dword [eax]
push eax
push 1
lea ecx, [esp + 0x780]
call fcn.00417d60
mov ecx, eax
lea ebx, [esp + 0x4c]
call fcn.00438ef0
jmp 0x40f5b4
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.004756c0
mov ecx, dword [esp + 0x34]
add esp, 8
mov byte [ecx], 1
lea eax, [esp + 0x52c]
mov byte [esp + 0x17], 1
call fcn.00406450
mov byte [esp + 0x8a8], 1
cmp byte [esp + 0x1a8], 0
mov dword [esp + 0x8c], vtable.t_str.0
jne 0x40f5fd
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x98]
cmp eax, edx
je 0x40f5fd
push eax
call fcn.004ed7b6
add esp, 4
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jl 0x40f412
cmp byte [esp + 0x17], 0
je 0x40fa7f
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x44]
mov ebx, esi
mov dword [eax + 0x248], 4
call fcn.00439c00
mov ecx, dword [esp + 0x3c]
call fcn.0041fa50
lea ecx, [esp + 0x1b4]
mov esi, eax
call fcn.0041dc00
lea ecx, [esp + 0x8b4]
push ecx
lea edx, [esp + 0x1b8]
push edx
push str.UserManager
mov byte [esp + 0x8b4], 5
call fcn.00405400
add esp, 4
mov ecx, eax
call fcn.004a4f20
lea ecx, [esp + 0x8c]
call fcn.004174b0
mov eax, str.AllSkin
lea edx, [esp + 0x8c]
call fcn.00417710
mov byte [esp + 0x8a8], 5
cmp byte [esp + 0x1a8], 0
lea eax, [esp + 0x98]
jne 0x40f6b4
mov eax, dword [esp + 0x94]
mov edi, 0x2e
cmp word [eax + 4], di
jne 0x40f6d5
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1b8]
call fcn.0041f1b0
jmp 0x40f6e9
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x1b8]
call fcn.0041e2f0
cmp byte [esp + 0x1a8], 0
mov ebp, vtable.t_str.0
mov dword [esp + 0x8c], ebp
jne 0x40f71a
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x98]
cmp eax, edx
je 0x40f71a
push eax
call fcn.004ed7b6
add esp, 4
mov ebx, dword [esp + 0x34]
push 0
push ebx
lea ecx, [esp + 0x1bc]
call fcn.0041f2b0
lea ecx, [esp + 0x8c]
call fcn.004174b0
mov eax, esi
lea edx, [esp + 0x8c]
call fcn.00417710
mov byte [esp + 0x8a8], 5
cmp byte [esp + 0x1a8], 0
lea eax, [esp + 0x98]
jne 0x40f767
mov eax, dword [esp + 0x94]
cmp word [eax + 4], di
jne 0x40f783
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1b8]
call fcn.0041f1b0
jmp 0x40f797
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x1b8]
call fcn.0041e2f0
cmp byte [esp + 0x1a8], 0
mov dword [esp + 0x8c], ebp
jne 0x40f7c3
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x98]
cmp eax, edx
je 0x40f7c3
push eax
call fcn.004ed7b6
add esp, 4
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x1c0]
push eax
push ebx
call fcn.004117e0
mov ecx, eax
call fcn.004a2a20
test al, al
jne 0x40f84f
mov ecx, ebx
call fcn.00416430
push 0x546874
push 0x549858
mov edx, eax
call fcn.00417ed0
add esp, 8
cmp byte [esp + 0x2d0], 0
mov dword [esp + 0x1b4], ebp
jne 0x40f832
mov eax, dword [esp + 0x1bc]
lea ecx, [esp + 0x1c0]
cmp eax, ecx
je 0x40f832
push eax
call fcn.004ed7b6
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x8a8], 0
call fcn.00438a20
mov dword [esp + 0x2dc], ebp
jmp 0x40f399
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
jne 0x40fa07
cmp byte [esp + 0x2d0], 0
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x248], 5
lea eax, [esp + 0x1c0]
jne 0x40f882
mov eax, dword [esp + 0x1bc]
mov edi, dword [esp + 0x8b4]
lea ecx, [eax + 4]
call fcn.00409060
test al, al
je 0x40fa43
push str.UserManager
call fcn.00405400
add esp, 4
push 0
push 0
push 0
push 0
push str.SkinReg.exe
add eax, 0x868
push eax
lea ecx, [esp + 0x41c]
call fcn.0041dc60
lea ecx, [esp + 0x8c]
call fcn.004174b0
mov byte [esp + 0x8a8], 9
cmp byte [esp + 0x2d0], 0
lea eax, [esp + 0x1c0]
jne 0x40f8f1
mov eax, dword [esp + 0x1bc]
push str.__q__c__n__na__ef__active
push 0x54644c
add eax, 4
push eax
push 0x54644c
push str._install
lea ecx, [esp + 0xa0]
call fcn.00417d40
mov ecx, eax
call fcn.00417d40
mov ecx, eax
call fcn.00417d40
mov ecx, eax
call fcn.00417d40
mov ecx, eax
call fcn.00417d40
mov esi, eax
push 0xa
push 0x544fb4
mov edx, esi
call fcn.00417ed0
mov edi, dword [esp + 0x8bc]
add esp, 8
push 0x5469dc
mov ecx, esi
call fcn.00417d40
push edi
push 0x544fb4
mov edx, eax
call fcn.00417ed0
add esp, 8
cmp byte [esp + 0x1a8], 0
lea eax, [esp + 0x98]
jne 0x40f97f
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x34]
push 5
push 0
add eax, 4
push eax
lea ecx, [esp + 0x410]
call fcn.0041fd20
test al, al
jne 0x40f9ef
push 0x546a58
mov ecx, ebx
call fcn.004014b0
lea ecx, [esp + 0x8c]
call fcn.00417650
lea ecx, [esp + 0x404]
call fcn.00417650
lea ecx, [esp + 0x1b4]
call fcn.00417650
lea ecx, [esp + 0x44]
mov byte [esp + 0x8a8], 0
call fcn.00438a20
lea ecx, [esp + 0x2dc]
call fcn.00417650
xor al, al
jmp 0x40fb13
lea ecx, [esp + 0x8c]
call fcn.00417650
lea ecx, [esp + 0x404]
call fcn.00417650
cmp byte [esp + 0x2d0], 0
mov eax, dword [esp + 0x18]
mov dword [eax + 0x248], 6
mov dword [esp + 0x1b4], ebp
jne 0x40fa92
mov eax, dword [esp + 0x1bc]
lea ecx, [esp + 0x1c0]
cmp eax, ecx
je 0x40fa92
push eax
call fcn.004ed7b6
add esp, 4
jmp 0x40fa92
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1b4]
mov dword [edx + 0x248], 8
call fcn.00417650
lea ecx, [esp + 0x44]
mov byte [esp + 0x8a8], 0
call fcn.00438a20
lea ecx, [esp + 0x2dc]
call fcn.00417650
jmp 0x40fb11
mov ebp, dword [esp + 0x18]
mov dword [ebp + 0x248], 7
mov ebp, vtable.t_str.0
lea ecx, [esp + 0x44]
mov byte [esp + 0x8a8], 0
call fcn.00438a20
cmp byte [esp + 0x3f8], 0
mov dword [esp + 0x2dc], ebp
jne 0x40fb11
mov eax, dword [esp + 0x2e4]
lea edx, [esp + 0x2e8]
cmp eax, edx
jmp 0x40fb06
lea ecx, [esp + 0x44]
mov dword [ebp + 0x248], 7
mov byte [esp + 0x8a8], 0
call fcn.00438a20
cmp byte [esp + 0x3f8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40fb11
mov eax, dword [esp + 0x2e4]
lea ecx, [esp + 0x2e8]
cmp eax, ecx
je 0x40fb11
push eax
call fcn.004ed7b6
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.004ecddb
add esp, 0x898
ret