Function at 0x416160
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
push str.c:pdanet.log
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 0x48]
push 0x4ea038
push 4
push 0x4ea03c
xor ebx, ebx
push ebx
push ebx
push 0x83e80004
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4161cb
call edi
cmp eax, 0x3e5
je 0x4161cb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0042e636
add esp, 0x6c
ret
mov edx, dword [esi + 0x48]
lea eax, [esi + 0xb0]
push eax
lea ecx, [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4161f6
call edi
cmp eax, 0x3e5
jne 0x4161b7
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
push ebp
lea ecx, [ecx]
push 0xffffffffffffffff
xor ebp, ebp
push ebp
lea eax, [esi + 0x60]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 3
ja case.default.0x416216
jmp dword [eax*4 + 0x416788]
mov eax, dword [esi + 0x48]
push ebp
push 0x4ea038
push ebp
push ebp
push 4
push 0x4ea034
push 0x83e80008
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esi + 0x4c], 1
mov dword [esi + 0x50], ebp
jmp case.default.0x416216
mov ecx, dword [esi + 0x48]
push ebp
push 0x4ea038
lea edi, [esi + 0x88]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x41629c
cmp dword [0x4ea038], 4
jne 0x41629c
mov eax, dword [0x4ea03c]
sub eax, 2
je 0x416743
mov edx, dword [esi + 0x48]
push edi
push 0x4ea038
push 4
push 0x4ea03c
push ebp
push ebp
push 0x83e80004
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x41637e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je case.default.0x416216
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0042e636
add esp, 0x6c
ret
push ebp
lea ebx, [esi + 0x14]
push ebx
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4162ad
xor eax, eax
cmp dword [ebx], ebp
je 0x4162af
push str.PC_to_Palm
call fcn.004159a0
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx]
lea ebp, [esi + 0x10]
push ecx
call fcn.004159a0
add esp, 8
cmp dword [esi + 0x4c], 0
je 0x416358
push str._r_nOK_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
push edi
mov dword [esp + 0x38], eax
call fcn.0042e62c
push edi
push str._r_nOK_r_n
push eax
mov dword [esp + 0x40], eax
call fcn.004302c0
lea edi, [esi + 0x2c]
add esp, 0x10
mov ecx, edi
call fcn.0040b430
lea edx, [esp + 0x30]
push edx
lea ecx, [esi + 0x18]
call fcn.0040bfa0
mov ecx, edi
call fcn.0040b450
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x416363
push ebp
mov ecx, 0x4e9a90
call fcn.0040e010
mov ecx, dword [ebp]
mov edx, dword [esi + 0x48]
lea eax, [esi + 0xb0]
push eax
push ebx
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne case.default.0x416216
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jmp 0x4162a7
lea edi, [esi + 0x2c]
test edi, edi
je 0x4163a2
lea eax, [edi + 4]
jmp 0x4163a4
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x28], 0
je 0x416702
mov ebp, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
add eax, ebp
cmp ebp, eax
jbe 0x4163c6
call fcn.004309cc
mov ecx, dword [esi + 0x28]
add ecx, dword [esi + 0x24]
mov ebx, ebp
mov edi, ebp
shr ebx, 1
and edi, 1
cmp ebp, ecx
jb 0x4163de
call fcn.004309cc
mov eax, dword [esi + 0x20]
cmp eax, ebx
ja 0x4163e7
sub ebx, eax
mov edx, dword [esi + 0x1c]
mov ebx, dword [edx + ebx*4]
mov eax, dword [ebx + edi*8]
mov ebp, dword [ebx + edi*8 + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x28]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x14], ebp
je 0x416425
add dword [esi + 0x24], 1
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
add edi, edi
cmp edi, ecx
ja 0x416418
mov dword [esi + 0x24], edx
add eax, 0xffffffff
cmp eax, edx
mov dword [esi + 0x28], eax
jne 0x416425
mov dword [esi + 0x24], edx
lea eax, [esi + 0x2c]
cmp eax, edx
je 0x416431
add eax, 4
jmp 0x416433
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.Palm_to_PC
xor eax, eax
call fcn.004159a0
mov ecx, dword [esp + 0x14]
push ecx
mov eax, ebp
call fcn.004159a0
add esp, 8
cmp dword [esi + 0x50], 0
jne 0x416662
cmp dword [esi + 0x4c], 0
jne 0x416662
xor ebx, ebx
test ebp, ebp
jbe 0x416662
jmp 0x416480
mov edx, dword [esp + 0x10]
mov eax, 7
mov ecx, str.CONNECT
add edx, ebx
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4164a8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x416490
test eax, eax
je 0x41650d
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x4164f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x416509
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x4164f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x416509
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x4164f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x416509
movzx edi, byte [edx]
movzx eax, byte [ecx]
sub edi, eax
je 0x416509
test edi, edi
mov ebp, dword [esp + 0x14]
mov eax, 1
jg 0x41650f
or eax, 0xffffffff
jmp 0x41650f
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
je 0x416523
add ebx, 1
cmp ebx, ebp
jb 0x416480
jmp 0x416662
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov word [esp + 0x56], ax
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
mov ebx, 1
mov dword [esi + 0x50], ebx
mov ecx, dword [0x4bb39c]
mov dx, word [0x4bb3a0]
push str.SoftwarePdaNetAndroid
push connect
mov dword [esp + 0x4c], ecx
mov word [esp + 0x50], dx
call edi
test eax, eax
jne 0x4165ba
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.phonenumber
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [str.2400000]
mov ecx, dword [0x4bb38c]
lea edx, [esp + 0x20]
push edx
push 0x20019
push 0
push str.SoftwarePdaNetAndroid
push connect
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
call edi
test eax, eax
jne 0x416621
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.MaxSpeed
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x58]
push edx
call fcn.0043107c
add esp, 4
cmp eax, 0xe100
mov dword [esp + 0x28], eax
jge 0x416641
mov dword [esp + 0x28], 0xe100
mov ecx, dword [esi + 0x48]
push 0
push 0x4ea038
push 0
push 0
push 4
lea eax, [esp + 0x3c]
push eax
push 0x83e8000c
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], ebp
mov ebx, ebp
cmp ebp, 0x400
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jl 0x4166c2
lea ebx, [ebx]
lea eax, [esi + 0xc4]
push eax
mov eax, dword [esi + 0x48]
lea edx, [esp + 0x28]
push edx
push 0x400
push edi
push eax
call ebp
mov ecx, dword [esi + 0x70]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x416723
sub ebx, 0x400
add edi, 0x400
cmp ebx, 0x400
jge 0x416680
test ebx, ebx
je 0x4166f0
mov ecx, dword [esi + 0x48]
lea edx, [esi + 0xc4]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esi + 0x70]
push 0xfa0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x416734
mov eax, dword [esp + 0x10]
push eax
call fcn.0042f66f
add esp, 4
jmp case.0x416216.94
test edi, edi
je 0x416715
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x416216
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x416216
push 0x39
push str.Connection_problem_detected
mov ecx, 0x4e9a90
call fcn.00415960
mov ecx, 0x4e9a90
call fcn.0040efb0
jmp case.default.0x416216
mov dword [esi + 0x4c], ebp
cmp dword [0x4e9b80], ebp
je 0x416758
mov ecx, 0x4e9a90
call fcn.0040efb0
mov eax, dword [0x4e9d48]
cmp eax, ebp
je 0x416770
push ebp
push 1
push 0x8065
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x78]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0042e636
add esp, 0x6c
ret