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

Disassembly:
push 0xffffffffffffffff
push 0x4a7520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esp + 0x60]
mov eax, dword [esi + 0x284]
lea edi, [esi + 0x284]
push ebp
push eax
mov dword [esp + 0x60], 0
call fcn.0047e6f7
add esp, 8
test eax, eax
jne 0x41ca6c
lea eax, [ebp - 0x10]
jmp 0x41cf8b
mov eax, dword [esp + 0x64]
test eax, eax
lea ecx, [esi + 0x2ac]
je 0x41ca82
push edi
call fcn.00402060
jmp 0x41ca87
call fcn.00401520
mov eax, dword [ebp - 0xc]
test eax, eax
mov dword [esp + 0x10], 0x3ba
mov dword [esp + 0x64], 0x1b0
mov dword [esp + 0x18], 0x1e
jl 0x41cbd6
push 0x4b13a4
push ebp
call fcn.0047e729
add esp, 8
test eax, eax
je 0x41cbd6
sub eax, ebp
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x41cbd6
inc edi
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
call fcn.004022c0
mov eax, dword [eax]
push eax
call fcn.0047f3dc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cb0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
mov eax, dword [ebp - 0xc]
jl 0x41cbd6
cmp edi, eax
jg 0x41cbd6
lea edi, [ebp + edi*2]
push 0x4b13a4
push edi
call fcn.0047e729
add esp, 8
test eax, eax
je 0x41cbd6
sub eax, ebp
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x41cbd6
inc edi
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
call fcn.004022c0
mov eax, dword [eax]
push eax
call fcn.0047f3dc
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cb85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
push 0x4b13a4
lea ecx, [esp + 0x68]
call fcn.00401730
cmp eax, 0xffffffff
je 0x41cbd6
inc eax
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
call fcn.004022c0
mov eax, dword [eax]
push eax
call fcn.0047f3dc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
push 0
push 0
push 1
lea edi, [esi + 0x110]
push 0x71
push edi
call fcn.00499d5d
lea ebx, [esi + 0x1ac]
add esp, 0x18
test ebx, ebx
jne 0x41cbfd
xor eax, eax
jmp 0x41cc00
mov eax, dword [ebx + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebp
test eax, eax
je 0x41cc33
test edi, edi
jne 0x41cc15
xor eax, eax
jmp 0x41cc18
mov eax, dword [edi + 0x1c]
push eax
call ebp
test eax, eax
je 0x41cc33
mov ebp, 1
push ebp
push edi
mov ecx, ebx
call fcn.00493cbb
inc ebp
cmp ebp, 0x10
jle 0x41cc24
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x224], ebx
mov dword [esi + 0x218], 1
call fcn.0041b4a0
push ebx
lea ecx, [esi + 0x36c]
mov dword [esi + 0x21c], ebx
call fcn.00499cdf
push ebx
mov ecx, edi
call fcn.00499cdf
push 1
push ebx
push ebx
push ebx
push ebx
lea ecx, [esi + 0x98]
call fcn.00499ca1
mov edx, dword [esi + 0x298]
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x64]
add eax, edx
add eax, ecx
mov ecx, dword [esi + 0x2a4]
mov dword [esi + 0x248], eax
add ecx, dword [esi + 0x29c]
add ecx, ebp
lea edx, [esp + 0x1c]
mov dword [esi + 0x24c], ecx
push edx
mov ecx, 0x4d2cb0
call fcn.00419480
push str.res_swf_20090402main.swf
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x64], 1
call fcn.004023c0
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov bl, 3
add eax, 0xfffffff0
mov byte [esp + 0x58], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ccf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x60]
push eax
lea ecx, [esi + 0x284]
call fcn.00402060
mov eax, dword [esi + 0x284]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov ebp, esp
push eax
call fcn.004015e0
add eax, 0x10
mov dword [ebp], eax
mov ecx, esp
mov dword [esp + 0x30], esp
push str.livemainskin
mov byte [esp + 0x64], 4
call fcn.00404200
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.MiscSettings
mov byte [esp + 0x68], 5
call fcn.00404200
mov ecx, 0x4d2c80
mov byte [esp + 0x64], bl
call fcn.00418a10
mov ecx, dword [esi + 0x284]
movzx edx, word [0x4d2e16]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._port_uskinname_s
push eax
call fcn.004097c0
mov ecx, dword [esp + 0x24]
push ecx
push 0x4cfd24
push 0
push 0
push 4
push 0x66
push edi
call fcn.00499d5d
push 0
push 0
push 0
push 1
push 0x70
push edi
call fcn.00499d5d
add esp, 0x44
lea edx, [esp + 0x20]
push edx
mov ecx, 0x4d2cb0
call fcn.00419480
mov eax, dword [eax]
push eax
push str.localserver
push 0x4cfd28
push 0
push 0
push 1
push 0x97
push edi
mov byte [esp + 0x78], 6
call fcn.00499d5d
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x20
mov byte [esp + 0x58], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cdf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ebx, [esi + 0x238]
push ebx
push eax
call edi
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x40]
push eax
push ecx
call edi
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
sub edi, eax
mov eax, dword [esp + 0x44]
sub edi, ebp
mov ebp, dword [esp + 0x34]
add edi, edx
mov edx, dword [esp + 0x3c]
sub ebp, eax
mov eax, dword [esp + 0x64]
sub ebp, edx
push 0
lea edx, [esp + 0x34]
push edx
add edi, ecx
mov ecx, dword [esp + 0x54]
push 0
add ebp, ecx
push 0x30
add ebp, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x38]
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [ebx], ecx
cdq
sub eax, edx
add ecx, edi
mov dword [esi + 0x240], ecx
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov dword [esi + 0x23c], ecx
add ecx, ebp
mov dword [esi + 0x244], ecx
lea ecx, [esi + 0x3d0]
mov dword [ecx + 8], 0x29e
mov eax, dword [ecx + 8]
push 0x11
mov dword [ecx + 0xc], 0x190
mov edx, dword [ecx + 0xc]
mov dword [ecx + 0x10], eax
mov eax, 1
push 0x11
mov dword [ecx + 0x14], edx
mov dword [ecx + 4], 0
mov edx, eax
mov edi, 0x7a
mov ebx, 0x14
sub esp, 0x10
mov ebp, esp
mov dword [ebp], eax
mov dword [ebp + 4], edx
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call fcn.0041c8e0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
lea edi, [esi + 0x174]
mov ecx, edi
mov dword [esi + 0x3bc], ebx
mov dword [esi + 0x160], eax
call fcn.00417220
mov ebp, dword [esp + 0x10]
mov ecx, ebp
mov dword [edi + 0x10], ecx
mov edx, ebx
add esi, 0x31c
mov ecx, esi
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], edx
mov dword [edi + 4], 0
call fcn.00417220
mov eax, ebp
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, ebx
add eax, 0xfffffff0
mov dword [esi + 0x14], ecx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
mov dword [esi + 4], 0
mov byte [esp + 0x58], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cf84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cfaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 8