Function at 0x48b680
Capabilities:
Check if file exists
Delete file
Get number of processors
Move file
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a329d
mov eax, dword fs:[0]
push eax
sub esp, 0x3b8
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x3b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x3cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3dc]
mov esi, dword [esp + 0x3f0]
mov ebp, dword [esp + 0x3ec]
mov ebx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], ecx
push str.AsyncPullFileFromPhoneImpl_begin
mov dword [esp + 0x3d8], 1
call fcn.0049d036
mov edx, dword [esp + 0x3ec]
add esp, 4
cmp dword [edx], 1
jne 0x48b90d
push 0
call fcn.004f8fbf
add esp, 4
cmp dword [esp + 0x3f4], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
je 0x48b876
mov edi, dword [ebp + 4]
fldz
mov eax, dword [ebp]
xor ecx, ecx
cmp edi, ecx
ja 0x48b740
cmp eax, ecx
jbe 0x48b7c4
mov eax, dword [ebx + 4]
fstp st(0)
mov ecx, dword [ebx]
push 0
push 0x64
push eax
push ecx
call fcn.005034c0
mov dword [esp + 0x18], eax
mov eax, edx
and edx, 0x7fffffff
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
and eax, 0x80000000
mov dword [esp + 0x1c], eax
mov eax, dword [ebp]
xor edx, edx
mov dword [esp + 0x18], edx
fild qword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, edi
mov ecx, edi
fchs
and eax, 0x7fffffff
faddp st(1)
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
fild qword [esp + 0x18]
xor ecx, ecx
fchs
faddp st(1)
fdivp st(1)
fld qword [0x6005b8]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x48b7c2
fstp st(1)
jmp 0x48b7c4
fstp st(0)
lea edx, [esp + 0x1c0]
fstp qword [esp + 0x1a0]
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], ecx
test edx, edx
je 0x48b813
mov edx, dword [esp + 0x3e4]
lea edi, [esp + 0x1c0]
call fcn.0048b620
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebx]
mov dword [esp + 0x1a8], eax
mov eax, dword [ebx + 4]
push 0
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], edx
mov dword [esp + 0x1b8], eax
call fcn.004f8fbf
sub eax, dword [esp + 0x34]
lea ecx, [esp + 0x1a4]
sbb edx, dword [esp + 0x38]
add eax, dword [esi]
push ecx
adc edx, dword [esi + 4]
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1c4], edx
mov edx, dword [esp + 0x400]
push edx
call dword [esp + 0x400]
add esp, 0xc
push 0
call fcn.004f8fbf
sub eax, dword [esp + 0x34]
sbb edx, dword [esp + 0x38]
add dword [esi], eax
mov eax, dword [esp + 0x3e4]
push eax
adc dword [esi + 4], edx
push str.AsyncPullFileFromPhoneImpl_exit_CreateDirectoryByPath__s_
call fcn.0049d036
mov ecx, dword [esp + 0x3ec]
add esp, 0xc
call fcn.0049c3b6
mov esi, eax
mov byte [esp + 0x3d4], 0
mov eax, dword [esp + 0x3e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b8d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3d4], 0xffffffff
mov eax, dword [esp + 0x3e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b906
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x48c1c8
mov ecx, dword [esp + 0x3e0]
push 0x5c
push ecx
mov dword [esp + 0x40], 0
call fcn.004f7f30
add esp, 8
test eax, eax
jne 0x48b930
or eax, 0xffffffff
jmp 0x48b939
sub eax, dword [esp + 0x3e0]
sar eax, 1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x3e0]
call fcn.004098d0
mov byte [esp + 0x3d4], 2
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0049c3b6
mov edi, dword [esp + 0x3e0]
call fcn.0049bd8c
lea edx, [esp + 0x3e0]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, str..m2p
call fcn.00409940
add esp, 8
mov byte [esp + 0x3d4], 3
mov edi, dword [esp + 0x14]
call fcn.0049bd8c
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x48], edi
cmp edi, 0xffffffff
jne 0x48ba7c
mov edx, dword [esp + 0x14]
push edx
push str.AsyncPullFileFromPhoneImpl_exit_CreateFile__s_
call fcn.0049d036
mov byte [esp + 0x3dc], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b9f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d4], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ba1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d4], 0
mov eax, dword [esp + 0x3e0]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ba47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3d4], 0xffffffff
mov eax, dword [esp + 0x3e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ba75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x48c1c8
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov esi, esp
call fcn.004073f0
mov ecx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add eax, 0x10
push ecx
lea ecx, [esp + 0x44]
mov dword [esi], eax
call fcn.0048f5b0
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
lea esi, [esp + 0x58]
call fcn.0047d4c0
push 0
mov byte [esp + 0x3e0], 5
call fcn.004f8fbf
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3f0]
add esp, 0xc
push edx
lea esi, [esp + 0x188]
mov dword [esp + 0x1c], eax
call fcn.00490170
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x3d4], 6
mov eax, dword [esp + 0x198]
mov esi, eax
mov dword [esp + 0x60], eax
push 0x2710
lea eax, [esp + 0x60]
mov ebp, 0x54415453
push eax
mov ebx, 8
mov dword [esp + 0x64], ebp
call fcn.004a9eac
cmp eax, ebx
jne 0x48c1f2
cmp dword [esp + 0x19c], 0x10
mov eax, dword [esp + 0x188]
jae 0x48bb39
lea eax, [esp + 0x188]
push 0x2710
push eax
mov ebx, esi
call fcn.004a9eac
cmp eax, esi
jne 0x48c1f2
push 0x2710
push 0x10
lea ecx, [esp + 0x64]
push ecx
call fcn.004a9f07
cmp eax, 0x10
jne 0x48c1f2
cmp dword [esp + 0x5c], ebp
jne 0x48c1f2
push 0x2710
lea edx, [esp + 0x60]
push edx
lea ebx, [eax - 8]
mov dword [esp + 0x64], 0x56434552
mov dword [esp + 0x68], esi
call fcn.004a9eac
cmp eax, ebx
jne 0x48c0ab
cmp dword [esp + 0x19c], 0x10
mov eax, dword [esp + 0x188]
jae 0x48bbb0
lea eax, [esp + 0x188]
push 0x2710
push eax
mov ebx, esi
call fcn.004a9eac
cmp eax, esi
jne 0x48c0ab
push 0xa0008
call fcn.004f78be
xor edi, edi
add esp, 4
cmp eax, edi
je 0x48bbe1
mov dword [eax], edi
mov dword [eax + 4], edi
mov ebp, eax
jmp 0x48bbe3
xor ebp, ebp
mov ecx, ebp
lea esi, [esp + 0x74]
call fcn.0048f640
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x3d4], 7
mov edi, edi
mov esi, 8
lea ebx, [esp + 0x5c]
lea esp, [esp]
push 0x186a0
push esi
push ebx
call fcn.004a9f07
test eax, eax
jle 0x48bc28
sub esi, eax
add ebx, eax
test esi, esi
ja 0x48bc10
test esi, esi
jne 0x48bcc3
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
cmp eax, 0x454e4f44
je 0x48bd8d
cmp eax, 0x41544144
jne 0x48bd9a
cmp esi, 0x10000
jg 0x48be56
lea ebx, [ebx]
mov eax, dword [ebp + 4]
lea ecx, [eax + esi]
cmp ecx, 0xa0000
jb 0x48bc95
xor ebx, ebx
push ebx
lea edx, [esp + 0x50]
push edx
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48bfc5
mov dword [ebp + 4], ebx
mov ecx, dword [ebp + 4]
push 0x186a0
lea eax, [ebp + 8]
push esi
add ecx, eax
push ecx
call fcn.004a9f07
test eax, eax
jle 0x48c024
add dword [ebp + 4], eax
add dword [esp + 0x28], eax
sub esi, eax
test esi, esi
jg 0x48bc60
jmp 0x48bc00
push str.AsyncPullFileFromPhoneImpl_exit_3__AdbRecvData_
call fcn.0049d036
lea edx, [esp + 0x78]
push edx
call fcn.0048f720
add esp, 8
cmp dword [esp + 0x19c], 0x10
jb 0x48bcf4
mov eax, dword [esp + 0x188]
push eax
call fcn.004f6734
add esp, 4
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x1a0], 0xf
mov dword [esp + 0x19c], 0
mov byte [esp + 0x18c], 0
call fcn.0047d4d0
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x3dc], 3
call fcn.0048f6c0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 8
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bd51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d4], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bd79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d4], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x48ba03
mov dword [esp + 0x38], 1
jmp 0x48be63
mov eax, dword [esp + 0x24]
push str.SRC_NOT_BE_READ
mov ebx, 0xf
call fcn.004072f0
cmp dword [esp + 0x5c], 0x4c494146
jne 0x48be40
mov ebx, dword [esp + 0x60]
cmp ebx, 0x100
jle 0x48bdcc
mov ebx, 0x100
push 0x2710
push ebx
lea esi, [ebp + 8]
push esi
call fcn.004a9f07
cmp eax, ebx
jne 0x48be63
push 3
lea ecx, [esp + 0x88]
push esi
lea eax, [esp + 0x88]
mov byte [ebx + ebp + 8], 0
mov dword [esp + 0x88], ecx
call fcn.00410760
mov byte [esp + 0x3d4], 8
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x24]
call fcn.00406780
mov byte [esp + 0x3d4], 7
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x84]
cmp eax, edx
je 0x48be40
push eax
call fcn.004f6d01
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
push str.AsyncPullFileFromPhoneImpl_exit_4__strRet___s_
call fcn.0049d036
add esp, 8
jmp 0x48be63
push str.AsyncPullFileFromPhoneImpl_exit_5__len___SYNC_DATA_MAX
call fcn.0049d036
add esp, 4
mov eax, dword [ebp + 4]
xor esi, esi
cmp eax, esi
jbe 0x48befb
push esi
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esp + 0x58]
push eax
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48bef8
push str.AsyncPullFileFromPhoneImpl_exit_8__WriteFile
call fcn.0049d036
lea ecx, [esp + 0x78]
push ecx
call fcn.0048f720
add esp, 8
lea ecx, [esp + 0x184]
call fcn.00409b60
lea edx, [esp + 0x50]
push edx
call fcn.0047d4d0
add esp, 4
lea esi, [esp + 0x3c]
call fcn.0048e1c0
lea ecx, [esp + 0x14]
call fcn.00406760
lea ecx, [esp + 0x20]
call fcn.00406760
lea ecx, [esp + 0x3e0]
call fcn.00406760
lea ecx, [esp + 0x3e4]
call fcn.00406760
xor eax, eax
jmp 0x48c1c8
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
cdq
add dword [ecx], eax
push esi
adc dword [ecx + 4], edx
call fcn.004f8fbf
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
sbb edx, dword [esp + 0x20]
add dword [ecx], eax
lea eax, [esp + 0x78]
push eax
adc dword [ecx + 4], edx
call fcn.0048f720
add esp, 8
cmp dword [esp + 0x19c], 0x10
jb 0x48bf47
mov ecx, dword [esp + 0x188]
push ecx
call fcn.004f6734
add esp, 4
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x1a0], 0xf
mov dword [esp + 0x19c], esi
mov byte [esp + 0x18c], 0
mov byte [esp + 0x3d8], 4
call fcn.0047d4d0
add esp, 4
cmp dword [esp + 0x38], esi
je 0x48c0d9
push str.AsyncPullFileFromPhoneImpl_exit_9_Success
call fcn.0049d036
mov ecx, dword [esp + 0x3e4]
add esp, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48bfad
mov edx, dword [esp + 0x3e0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x3e0]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x48c0e6
push str.AsyncPullFileFromPhoneImpl_exit_6__WriteFile
call fcn.0049d036
lea eax, [esp + 0x78]
push eax
call fcn.0048f720
add esp, 8
cmp dword [esp + 0x19c], 0x10
jb 0x48bff6
mov ecx, dword [esp + 0x188]
push ecx
call fcn.004f6734
add esp, 4
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x1a0], 0xf
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], 0
call fcn.0047d4d0
lea eax, [esp + 0x40]
push eax
jmp 0x48bd21
push str.AsyncPullFileFromPhoneImpl_exit_7__recv_failed
call fcn.0049d036
lea ecx, [esp + 0x78]
push ecx
call fcn.0048f720
add esp, 8
cmp dword [esp + 0x19c], 0x10
jb 0x48c055
mov edx, dword [esp + 0x188]
push edx
call fcn.004f6734
add esp, 4
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x1a0], 0xf
mov dword [esp + 0x19c], 0
mov byte [esp + 0x18c], 0
call fcn.0047d4d0
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x3dc], 3
call fcn.0048f6c0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x48bd45
push str.AsyncPullFileFromPhoneImpl_exit_2_
call fcn.0049d036
add esp, 4
lea ecx, [esp + 0x184]
call fcn.00409b60
lea ecx, [esp + 0x50]
mov byte [esp + 0x3d4], 4
push ecx
call fcn.0047d4d0
add esp, 4
push str.AsyncPullFileFromPhoneImpl_exit_10_Failed
call fcn.0049d036
add esp, 4
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x3d8], 3
call fcn.0048f6c0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c11b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d4], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c143
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d4], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c16b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d4], 0
mov eax, dword [esp + 0x3e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c196
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3d4], 0xffffffff
mov eax, dword [esp + 0x3e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c1c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b4]
xor ecx, esp
call fcn.004f673f
add esp, 0x3c4
ret 0x20
push str.AsyncPullFileFromPhoneImpl_exit_1_
call fcn.0049d036
add esp, 4
cmp dword [esp + 0x19c], 0x10
jb 0x48c219
mov edx, dword [esp + 0x188]
push edx
call fcn.004f6734
add esp, 4
xor eax, eax
mov dword [esp + 0x198], eax
mov byte [esp + 0x188], al
lea eax, [esp + 0x50]
mov dword [esp + 0x19c], 0xf
mov byte [esp + 0x3d4], 4
push eax
jmp 0x48c0d1