Function at 0x46d170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c48ab
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
mov eax, dword [0x4f7ec4]
mov dword [ebp - 4], 0
test eax, eax
jne 0x46d260
cmp dword [ebx + 0x68], 0x10
lea eax, [ebx + 0x54]
jb 0x46d1d9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x110]
push str.shell:pm_uninstall__s
push eax
call fcn.00462bb0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cmp dword [ebx + 0x50], 0x10
lea eax, [ebx + 0x3c]
jb 0x46d21a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, ebx
push 0x1388
lea eax, [ebp - 0x110]
jne 0x46d253
push 7
push eax
call fcn.0046be00
jmp 0x46d58d
push 1
push eax
call fcn.0046be00
jmp 0x46d58d
cmp eax, 1
jne 0x46d27d
push 0x1388
push 2
push str.sync:
mov ecx, ebx
call fcn.0046be00
jmp 0x46d58d
cmp eax, 2
jne 0x46d395
mov ecx, ebx
call fcn.0046ce50
test al, al
jne 0x46d2c0
push str.Fail_to_open_device_for_file_transfer
lea ecx, [ebp - 0x244]
call fcn.00463020
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebx + 0x6c]
call fcn.00463290
lea ecx, [ebp - 0x244]
call fcn.00463250
jmp 0x46d57b
cmp dword [ebx + 0x50], 0x10
lea eax, [ebx + 0x3c]
jb 0x46d2cb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x110]
push str._data_local_tmp__s_33206
push eax
call fcn.00462bb0
lea ecx, [ebp - 0x110]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d2f0
sub ecx, edx
lea eax, [ecx + 8]
push eax
mov dword [ebp - 0x248], eax
call fcn.00471e37
mov edx, eax
lea ecx, [ebp - 0x110]
add esp, 4
mov dword [ebp - 0x24c], edx
lea esi, [ecx + 1]
mov dword [edx], 0x444e4553
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d322
sub ecx, esi
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x110]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d337
sub ecx, esi
lea eax, [ebp - 0x110]
push ecx
push eax
lea eax, [edx + 8]
push eax
call fcn.00476350
add esp, 0xc
mov dword [0x4f7ec4], 3
lea eax, [ebp - 0x24c]
mov ecx, ebx
push 0
push 1
push 0
push eax
push 0x45545257
call fcn.0046df50
push dword [ebp - 0x24c]
call fcn.00472590
add esp, 4
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x46d45b
cmp eax, 3
jne 0x46d47d
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x2710
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4f7ec4], 4
mov ecx, ebx
mov dword [ebx + 0x8c], 4
call fcn.0046e2c0
test al, al
je 0x46d57b
lea eax, [ebx + 0x6c]
push 0x4c633a
push eax
call fcn.0046b420
add esp, 8
test al, al
je 0x46d57b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 8
mov dword [0x4f7ec4], 5
call fcn.00471e37
mov esi, eax
mov dword [ebp - 0x248], 8
add esp, 4
mov dword [ebp - 0x24c], esi
mov dword [esi], 0x454e4f44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 1
mov dword [esi + 4], eax
mov ecx, ebx
push 0
lea eax, [ebp - 0x24c]
push eax
push 0x45545257
call fcn.0046df50
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x1388
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x4f7ec4]
mov dword [ebx + 0x8c], eax
jmp 0x46d58d
cmp eax, 5
jne 0x46d4bc
cmp dword [ebx + 0x50], 0x10
lea eax, [ebx + 0x3c]
jb 0x46d48d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x110]
push str.shell:pm_install__r__data_local_tmp__s
push eax
call fcn.00462bb0
add esp, 0xc
lea eax, [ebp - 0x110]
mov ecx, ebx
push 0x1388
push 6
push eax
call fcn.0046be00
jmp 0x46d58d
cmp eax, 6
jne 0x46d53d
lea ecx, [ebx + 0x3c]
push str.PdaNet.apk
call fcn.0046ed30
test eax, eax
je 0x46d50b
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x110]
push eax
push 0x13a6
call fcn.0046eda0
add esp, 8
lea eax, [ebp - 0x110]
mov ecx, ebx
push 0x1388
push 7
push eax
call fcn.0046be00
jmp 0x46d58d
push 0
push 1
push 0
push 0
push 0x45534c43
mov ecx, ebx
mov dword [0x4f7ec4], 9
mov byte [0x4f7c75], 1
call fcn.0046df50
push 0x258
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46d57b
cmp eax, 7
jne 0x46d58d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
push 0
push 1
push 0
push 0
push 0x45534c43
mov ecx, ebx
mov dword [0x4f7ec4], 9
mov byte [0x4f7c75], 1
call fcn.0046df50
push 0x258
call esi
cmp byte [ebx + 0x84], 0
jne 0x46d58d
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret 0x10