Function at 0x1001338a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jne 0x100133cc
mov eax, dword [ebp - 0x48]
cmp dword [eax + 8], 0
je 0x100133c2
push str.SendATCommand:_Invalid_AT_Command__null__
push 3
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, 3
jmp 0x100136e3
mov eax, dword [ebp - 0x48]
cmp dword [eax + 8], 0
je 0x100133f5
mov ecx, dword [ebp + 8]
push ecx
push str.SendATCommand:__s
push 3
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
mov ecx, dword [edx]
push eax
call dword [ecx + 0x1c]
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.10029860
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x10013416
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
push edx
call fcn.10029cb0
add esp, 4
mov esi, eax
push 0x1003f9d0
call fcn.10029cb0
add esp, 4
lea eax, [esi + eax + 1]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.100298b8
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10029860
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10029920
add esp, 8
push 0x1003f9d4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10029930
add esp, 8
mov dword [ebp - 0x14], 0
mov word [ebp - 0x10], 0
mov byte [ebp - 0xe], 0x68
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0
mov byte [ebp - 6], 0xd5
mov byte [ebp - 5], 0
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + 0x10bb8]
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 0x10bb8]
mov eax, dword [edx]
call dword [eax + 0x18]
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
push 0xffff
mov edx, dword [ebp - 0x48]
add edx, 0xbb4
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10029cb0
add esp, 4
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.1001d2c0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.10029396
add esp, 4
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x100136e0
cmp dword [ebp - 0x18], 0
jne 0x100136e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0
mov byte [ebp - 6], 0x9c
mov byte [ebp - 5], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], 0xbb8
ja 0x1001356d
mov dword [ebp - 0x4c], 0xbb8
jmp 0x10013573
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x28], 0xffffffff
push 0xffff
push 0
mov eax, dword [ebp - 0x48]
add eax, 0xbb4
push eax
call fcn.10029860
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x34]
push eax
push 0xffff
mov ecx, dword [ebp - 0x48]
add ecx, 0xbb4
push ecx
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.1001d015
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10013680
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0x14]
jbe 0x10013627
cmp dword [ebp + 0x18], 0
je 0x100135ef
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov dword [ebp - 0x18], 9
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 8], 0
je 0x1001361f
mov edx, dword [ebp - 0x18]
push edx
push str._CCommCmd::SendATCommand__Error_Code___d__Buffer_too_small_
push 1
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 8]
mov edx, dword [eax]
push ecx
call dword [edx + 0x1c]
add esp, 0x10
mov eax, dword [ebp - 0x18]
jmp 0x100136e3
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 0xbb4
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.10029520
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.100132de
and eax, 0xff
test eax, eax
je 0x10013680
cmp dword [ebp + 0x18], 0
je 0x1001367a
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov byte [ebp - 0x20], 1
jmp 0x1001369e
mov eax, dword [ebp - 0x20]
and eax, 0xff
test eax, eax
jne 0x1001369e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x1c]
jb 0x10013584
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
jne 0x100136e0
mov dword [ebp - 0x18], 0xb
mov edx, dword [ebp - 0x48]
cmp dword [edx + 8], 0
je 0x100136db
mov eax, dword [ebp - 0x18]
push eax
push str._CCommCmd::SendATCommand__Error_Code___d__No_corresponding_AT_command_response_received_
push 1
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
add esp, 0x10
mov eax, dword [ebp - 0x18]
jmp 0x100136e3
mov eax, dword [ebp - 0x18]
pop esi
mov esp, ebp
pop ebp
ret 0x18