Function at 0x409890
Capabilities:
Copy file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435cde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
mov eax, dword [0x4476d4]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [esp + 0x688], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
push edi
mov ebx, ecx
jne 0x409c22
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x69c], esi
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x69c], 1
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push str.https:__patch.play_xfinity.com_patch_
lea ecx, [esp + 0x18]
mov byte [esp + 0x6a0], 2
call fcn.00402510
push str.web_admin5
lea ecx, [esp + 0x24]
call fcn.00402510
push str.tantra_admin5
lea ecx, [esp + 0x1c]
call fcn.00402510
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea eax, [esp + 0x68]
push eax
call fcn.0041af70
lea edi, [esp + 0x6c]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409974
mov ecx, 6
mov esi, str.mainupdate_NotifyMsg.dat
rep movsd dword es:[edi], dword [esi]
push 0x500
push str.NotifyMsg.dat
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
movsb byte es:[edi], byte [esi]
call fcn.00407e80
test eax, eax
jne 0x4099af
push eax
push eax
push str.Cannot_Connect_NotifyMsg.dat_
call fcn.004306d9
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0041af70
lea edi, [esp + 0x6c]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4099d7
mov ecx, 5
mov esi, str.mainupdate_version.dat
rep movsd dword es:[edi], dword [esi]
push 0x80
movsw word es:[edi], word [esi]
push str.tempversion.dat
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
movsb byte es:[edi], byte [esi]
call fcn.00407e80
test eax, eax
jne 0x409a14
push eax
push eax
push str.Cannot_Connect_version_File_
call fcn.004306d9
lea ecx, [esp + 0x38]
call fcn.0042e41b
push 0
push 0
push str.NotifyMsg.dat
lea ecx, [esp + 0x44]
mov byte [esp + 0x6a8], 9
call fcn.0042e431
test eax, eax
je 0x409ade
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6a0], 0xa
call fcn.0042e81a
test eax, eax
je 0x409ab8
lea esi, [ebx + 0xa08]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00402330
mov eax, 0x438494
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409a90
sub eax, edx
push eax
push 0x438494
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0042e81a
test eax, eax
jne 0x409a72
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x69c], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0xa08]
push eax
lea ecx, [ebx + 0xa0c]
call fcn.0042b00c
lea ecx, [esp + 0x24]
call fcn.0042e41b
push 0
push 0
push str.version.dat
lea ecx, [esp + 0x30]
mov byte [esp + 0x6a8], 0xb
call fcn.0042e431
test eax, eax
je 0x409b78
push 0x104
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x2c]
call fcn.0042e60d
push 0x104
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042e60d
push 0x104
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x2c]
call fcn.0042e60d
lea eax, [esp + 0x160]
push eax
call fcn.0041a558
add esp, 4
lea ecx, [esp + 0x24]
mov dword [ebx + 0x20c], eax
call fcn.0042e77f
lea ecx, [esp + 0x24]
mov dword [ebx + 0x1fc], 1
mov byte [esp + 0x69c], 9
call fcn.0042e7bb
lea ecx, [esp + 0x38]
mov byte [esp + 0x69c], 2
call fcn.0042e7bb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x69c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x69c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x69c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40a3f7
cmp eax, 1
jne 0x409c63
mov eax, dword [ebx + 0x204]
mov edx, dword [ebx + 0x210]
push esi
lea ecx, [ebx + 0x210]
push esi
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x409c54
push esi
push esi
push str.Cannot_Open_version_File_
call fcn.004306d9
jmp 0x40a3f7
mov dword [ebx + 0x1fc], 2
jmp 0x40a3f7
cmp eax, 2
jne 0x409ec5
mov eax, dword [ebx + 0x210]
push 0x104
lea ecx, [esp + 0x164]
lea esi, [ebx + 0x210]
push ecx
mov ecx, esi
call dword [eax + 0x5c]
mov edx, dword [esi]
push 0x104
lea eax, [esp + 0x164]
push eax
mov ecx, esi
call dword [edx + 0x5c]
lea ecx, [esp + 0x370]
push ecx
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x16c]
push str._s__s__s
push ecx
call fcn.0041abc2
mov edx, dword [esi]
add esp, 0x14
push 0x104
lea eax, [esp + 0x164]
push eax
mov ecx, esi
call dword [edx + 0x5c]
lea ecx, [esp + 0x160]
push ecx
call fcn.0041a558
mov edx, dword [esi]
add esp, 4
mov edi, eax
push 0x104
lea eax, [esp + 0x164]
push eax
mov ecx, esi
call dword [edx + 0x5c]
lea ecx, [esp + 0x370]
push ecx
lea ecx, [ebx + 0x240]
call fcn.00402510
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
cmp dword [ebx + 0x20c], edi
jne 0x409d40
mov eax, dword [ebx + 0x208]
test eax, eax
jne 0x409d40
mov dword [ebx + 0x1fc], 4
jmp 0x40a3f7
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x69c], 0xc
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x69c], 0xd
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push str.https:__patch.play_xfinity.com_patch_
lea ecx, [esp + 0x18]
mov byte [esp + 0x6a0], 0xe
call fcn.00402510
push str.web_admin5
lea ecx, [esp + 0x20]
call fcn.00402510
push str.tantra_admin5
lea ecx, [esp + 0x14]
call fcn.00402510
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
call fcn.0041af70
lea edi, [esp + 0x6c]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409de6
mov ecx, 6
mov esi, str.mainupdate_UpdateList.dat
rep movsd dword es:[edi], dword [esi]
push 0xfa00
push str.temp.dat
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
movsw word es:[edi], word [esi]
call fcn.00407e80
test eax, eax
jne 0x409e22
push eax
push eax
push str.Cannot_Open_UpdateList_File_
call fcn.004306d9
mov eax, dword [ebx + 0x200]
mov edx, dword [ebx + 0x224]
push 0
lea esi, [ebx + 0x224]
push 0
push eax
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x409e50
push eax
push eax
push str.Cannot_Open_Update_List_File_
call fcn.004306d9
jmp 0x409eaa
mov eax, dword [esi]
push 0x104
lea ecx, [esp + 0x164]
push ecx
mov ecx, esi
call dword [eax + 0x5c]
mov edx, dword [esi]
push 0x104
lea eax, [esp + 0x164]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push 0x104
lea eax, [esp + 0x164]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push 0x104
lea eax, [esp + 0x164]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov dword [ebx + 0x1fc], 3
lea ecx, [esp + 0x10]
call fcn.00402100
lea ecx, [esp + 0x1c]
call fcn.00402100
lea ecx, [esp + 0x14]
jmp 0x40a3f2
cmp eax, 3
jne 0x40a27b
lea ecx, [esp + 0x38]
call fcn.00411bff
mov edx, dword [ebx + 0x224]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
lea esi, [ebx + 0x224]
push 0x104
lea eax, [esp + 0x374]
push eax
mov ecx, esi
mov dword [esp + 0x6a4], 0xf
call dword [edx + 0x5c]
test eax, eax
je 0x40a265
lea ecx, [esp + 0x580]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x274]
push ecx
lea edx, [esp + 0x380]
push str._s__u__u__s
push edx
call fcn.0041abc2
add esp, 0x18
push 0x104
lea eax, [esp + 0x26c]
push 0x5c
push eax
call fcn.0041b1f0
add esp, 8
inc eax
push eax
lea ecx, [esp + 0x168]
push ecx
call fcn.0041af70
mov eax, dword [0x4383f8]
mov edx, dword [str.Check_Files..]
mov ecx, dword [0x4383fc]
mov dword [esp + 0x70], eax
mov al, byte [0x438402]
mov dword [esp + 0x6c], edx
mov dx, word [0x438400]
mov byte [esp + 0x7a], al
lea eax, [esp + 0x16c]
mov word [esp + 0x78], dx
add esp, 0xc
mov dword [esp + 0x68], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409fa4
sub eax, edx
cmp eax, 0x1e
jbe 0x409fcb
push 0x1e
lea ecx, [esp + eax + 0x146]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0041b0a0
add esp, 0xc
jmp 0x409ffa
lea eax, [esp + 0x160]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409fd4
lea edi, [esp + 0x60]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409fe2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x60]
push eax
lea ecx, [ebx + 0x74]
call fcn.0042b00c
mov edx, dword [ebx + 0x90]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.0042f54c
mov edx, dword [ebx + 0x1c]
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x40]
call fcn.00411c92
test eax, eax
je 0x40a109
lea ecx, [esp + 0x38]
call fcn.00411ae0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00411ee0
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x6a4], 0x10
call fcn.00402900
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x69c], 0x12
call fcn.00402100
push 0
lea ecx, [esp + 0x20]
call fcn.00402140
lea edx, [esp + 0x478]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40a0a1
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x584]
push ecx
call fcn.00425e0e
add esp, 8
test eax, eax
jne 0x40a0f8
lea ecx, [esp + 0x38]
call fcn.00411b1a
cmp dword [esp + 0x10], eax
jne 0x40a0f8
lea ecx, [esp + 0x1c]
call fcn.00402100
lea ecx, [esp + 0x38]
mov dword [esp + 0x69c], 0xffffffff
call fcn.00411c23
jmp 0x40a3f7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x69c], 0xf
call fcn.00402100
mov edi, dword [ebx + 0x684]
mov edx, dword [esp + 0x20]
add edi, edx
push 0x10
mov dword [ebx + 0x684], edi
call fcn.0042baa7
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x69c], 0x13
je 0x40a140
mov ecx, eax
call fcn.004084e0
mov esi, eax
jmp 0x40a142
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.004020e0
push str.https:__patch.play_xfinity.com_patch_
lea ecx, [esp + 0x18]
mov byte [esp + 0x6a0], 0x14
call fcn.00402510
push str.main_
lea ecx, [esp + 0x18]
call fcn.00408590
lea eax, [esp + 0x268]
push eax
push 0
lea ecx, [esp + 0x1c]
call fcn.00402140
push eax
push str._s_s
push esi
call fcn.004024d0
add esp, 0x10
push 0x4383e0
push 0x4381e8
mov ecx, esi
call fcn.00407850
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esi + 4]
call fcn.00402510
mov edx, dword [esp + 0x10]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [ebx + 0x660]
mov dword [esi + 0xc], eax
call fcn.00409820
mov esi, dword [esp + 0x18]
add esi, 4
push 0x5c
mov ecx, esi
call fcn.00407300
test eax, eax
jl 0x40a25c
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00407a40
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
mov byte [esp + 0x6a0], 0x15
call fcn.00408720
test eax, eax
jne 0x40a253
lea ecx, [esp + 0x1c]
call fcn.004020e0
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a0], 0x16
call fcn.00402140
push eax
lea ecx, [esp + 0x20]
push str.Cannot_Create_Folder___s__
push ecx
call fcn.004024d0
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0
push 0
push edx
call fcn.004306d9
lea ecx, [esp + 0x1c]
call fcn.00402100
lea ecx, [esp + 0x18]
call fcn.00402100
lea ecx, [esp + 0x14]
jmp 0x40a0da
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
mov dword [ebx + 0x1fc], 4
jmp 0x40a0df
cmp eax, 4
jne 0x40a3f7
lea ecx, [esp + 0x10]
call fcn.004020e0
lea ecx, [ebx + 0x660]
mov dword [esp + 0x69c], 0x17
call fcn.00407330
test al, al
jne 0x40a35a
cmp dword [ebx + 0x684], esi
je 0x40a35a
push 1
push 0x3e9
mov ecx, ebx
call fcn.0042af33
mov ecx, eax
call fcn.0042b086
push 1
push 0x3f2
mov ecx, ebx
call fcn.0042af33
mov ecx, eax
call fcn.0042b086
push esi
lea ecx, [ebx + 0x698]
call fcn.00407010
push esi
lea ecx, [ebx + 0x6e8]
call fcn.00407010
mov ecx, ebx
call fcn.00406ed0
lea ecx, [ebx + 0x68c]
push ecx
push esi
push ebx
push 0x409500
push esi
push esi
call fcn.0041ad92
add esp, 0x18
cmp eax, esi
push esi
mov dword [ebx + 0x690], eax
push esi
jne 0x40a333
push str.Begin_Thread_Fail_
call fcn.004306d9
jmp 0x40a3ee
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [ebx + 0x694], eax
jne 0x40a3ee
push esi
push esi
push str.Create_Event_Fail_
call fcn.004306d9
jmp 0x40a3ee
push str.Start_Game
lea ecx, [esp + 0x14]
call fcn.00402510
push esi
lea ecx, [esp + 0x14]
call fcn.00402140
push eax
lea ecx, [ebx + 0x74]
call fcn.0042b00c
mov eax, dword [ebx + 0x90]
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.0042f54c
mov eax, dword [ebx + 0x1c]
push 1
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x64
lea ecx, [ebx + 0x698]
call fcn.00407010
push 0x64
lea ecx, [ebx + 0x6e8]
call fcn.00407010
push esi
push str.version.dat
push esi
lea ecx, [ebx + 0x204]
mov dword [ebx + 0x1f0], 1
call fcn.00402140
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, ebx
call fcn.00406ed0
lea ecx, [esp + 0x10]
call fcn.00402100
mov ecx, dword [esp + 0x694]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x68c]
xor ecx, dword [ebp + 4]
call fcn.00419d0f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4