Function at 0x4012f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1ec
mov dword [esp + 4], ecx
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x1f4]
mov dword [esp + 0x1c], ecx
push ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
push ebp
mov dword [esp + 0x2c], ecx
push esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
mov ecx, 0x40
lea edi, [esp + 0xfc]
xor ebp, ebp
rep stosd dword es:[edi], eax
xor ecx, ecx
cmp edx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
jle 0x4013e6
mov esi, dword [esp + 0x200]
mov edx, 1
sub edx, esi
mov ebx, esi
mov dword [esp + 0x10], edx
mov dl, byte [ebx]
cmp dl, 0x2c
je 0x40136f
cmp dl, 0xd
je 0x40136f
cmp dl, 0xa
je 0x40136f
inc ecx
jmp 0x4013cd
test ebp, ebp
jne 0x40137b
add esi, eax
lea edi, [esp + 0x1c]
jmp 0x4013a5
cmp ebp, 1
jne 0x401388
add esi, eax
lea edi, [esp + 0x2c]
jmp 0x4013a5
cmp ebp, 2
je 0x4013ba
cmp ebp, 3
je 0x4013ba
cmp ebp, 4
je 0x4013ba
cmp ebp, 5
jne 0x4013ba
add esi, eax
lea edi, [esp + 0xfc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x200]
mov eax, dword [esp + 0x10]
xor ecx, ecx
add eax, ebx
inc ebp
cmp dl, 0xd
je 0x4013e6
cmp dl, 0xa
je 0x4013e6
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x204]
inc edx
inc ebx
cmp edx, edi
mov dword [esp + 0x18], edx
jl 0x40135b
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405e10
lea edx, [esp + 0x14]
mov esi, eax
push edx
call dword [sym.imp.MSVCRT.dll_time]
mov eax, dword [esp + 0x18]
add esp, 8
sub eax, esi
cmp eax, 0xa
jle 0x40143f
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x7c]
push ecx
push eax
push 0x40d15c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call fcn.00405820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 8
mov eax, dword [0x40e438]
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
mov ecx, dword [eax + 0x70]
test ecx, ecx
jne 0x401498
add eax, 0x98
lea ecx, [esp + 0x2c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
je 0x401498
lea edx, [esp + 0x2c]
lea eax, [esp + 0x7c]
push edx
push str.SMS_Center_Tel_Number
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00405820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 8
lea edi, [esp + 0xfc]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x3c]
mov ebp, ecx
mov ecx, 0x10
shr ebp, 1
test ebp, ebp
rep stosd dword es:[edi], eax
jle 0x4014f3
lea esi, [esp + 0xfd]
movsx eax, byte [esi - 1]
sub eax, 0x30
cmp eax, 9
jle 0x4014d4
sub eax, 7
movsx ecx, byte [esi]
sub ecx, 0x30
cmp ecx, 9
jle 0x4014e2
sub ecx, 7
shl al, 4
add al, cl
add esi, 2
mov byte [esp + edx + 0x3c], al
inc edx
cmp edx, ebp
jl 0x4014c5
lea edx, [esp + 0x3c]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x84]
push str.CDMA_Control___s____s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x7c]
push edx
call fcn.00405820
lea eax, [esp + 0x3c]
push str.CONNECT
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40154a
mov ecx, dword [0x40e438]
call fcn.00407dc0
push 0x40d0e4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 8