Function at 0x4025ac
Capabilities:
Delete file
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x33c]
call fcn.00403260
call fcn.00402f00
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call sub.msvcrt.dll_localtime
mov edx, eax
mov eax, dword [edx]
mov dword [ebp - 0x68], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x328]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
mov dword [esp + 4], 0x406489
mov dword [esp], str.debug.log
call sub.msvcrt.dll_fopen
mov dword [0x407010], eax
cmp dword [0x407010], 0
jne 0x4026e2
mov dword [ebp - 0x194], 0xfffffff8
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.No_se_puede_abrir_bitacora_de_depuracion.
mov dword [esp + 8], str._s___s
mov dword [esp + 4], 0x1f400
mov dword [esp], 0x426418
call fcn.00403320
jmp 0x402beb
mov dword [esp + 8], str.Startup
mov dword [esp + 4], 0x4064d1
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
jge 0x40275f
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
mov eax, dword [edx + eax]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.ARG:_d:__s__n
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [ebp - 0x1c]
inc dword [eax]
jmp 0x402713
cmp dword [ebp + 8], 9
je 0x4027a8
mov dword [ebp - 0x194], 0xfffffff8
mov dword [esp + 0x14], str.__parametros___entrada___salida___verboso_
mov dword [esp + 0x10], str.__ca4xmlput__direccion___puerto___tiempo___comando_
mov dword [esp + 0xc], str.Uso:_n
mov dword [esp + 8], str._s_s_s_n
mov dword [esp + 4], 0x1f400
mov dword [esp], 0x426418
call fcn.00403320
jmp 0x402beb
mov dword [esp + 8], str.Reading_parameters
mov dword [esp + 4], 0x4064d1
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x406565
mov eax, dword [ebp + 0xc]
add eax, 8
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 1
jne 0x40281c
cmp dword [ebp - 0x10], 0
jle 0x40281c
cmp dword [ebp - 0x10], 0xffff
jg 0x40281c
jmp 0x40285b
mov dword [ebp - 0x194], 0xfffffff8
mov eax, dword [ebp + 0xc]
add eax, 8
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Parametro__puerto__tiene_que_ser_un_numero_entero___0_y___65536
mov dword [esp + 8], str._s:__s_n
mov dword [esp + 4], 0x1f400
mov dword [esp], 0x426418
call fcn.00403320
jmp 0x402beb
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x406565
mov eax, dword [ebp + 0xc]
add eax, 0xc
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 1
jne 0x40289a
cmp dword [ebp - 0x14], 0
jle 0x40289a
cmp dword [ebp - 0x14], 0xb4
jg 0x40289a
jmp 0x4028d9
mov dword [ebp - 0x194], 0xfffffff8
mov eax, dword [ebp + 0xc]
add eax, 0xc
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Parametro__tiempo__tiene_que_ser_un_numero_entero___1_y___180
mov dword [esp + 8], str._s:__s_n
mov dword [esp + 4], 0x1f400
mov dword [esp], 0x426418
call fcn.00403320
jmp 0x402beb
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
add eax, 0x18
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
add eax, 0x1c
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
add eax, 0x20
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov dword [esp + 4], 0x4065f0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x402979
mov dword [ebp - 0x194], 0xfffffff8
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.No_se_puede_abrir__entrada_
mov dword [esp + 8], str._s:___s___Err:__s_n
mov dword [esp + 4], 0x1f400
mov dword [esp], 0x426418
call fcn.00403320
jmp 0x402beb
mov dword [esp + 4], 0x406316
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4029e2
mov dword [ebp - 0x194], 0xfffffff8
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.No_se_puede_abrir__salida_
mov dword [esp + 8], str._s:___s___Err:__s_n
mov dword [esp + 4], 0x1f400
mov dword [esp], 0x426418
call fcn.00403320
jmp 0x402beb
mov dword [ebp - 0x180], 0x407018
mov dword [ebp - 0x18c], 0x1f400
mov dword [esp + 8], str.Reading_input
mov dword [esp + 4], 0x4064d1
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
shr eax, 4
and eax, 1
test eax, eax
jne 0x402acd
mov eax, dword [ebp - 0x180]
mov byte [eax], 0
cmp dword [ebp - 0x18c], 0
jne 0x402a79
mov dword [ebp - 0x194], 0xfffffff8
mov dword [esp + 0xc], str.Tamano_del_buffer_de_entrada_es_insuficiente.
mov dword [esp + 8], 0x40667a
mov dword [esp + 4], 0x1f400
mov dword [esp], 0x426418
call fcn.00403320
jmp 0x402beb
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
call sub.msvcrt.dll_fgets
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 0x18c]
sub dword [eax], edx
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 0x180]
add dword [eax], edx
jmp 0x402a20
mov dword [esp], 0x407018
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x184], eax
mov dword [esp + 8], 0x1f400
mov dword [esp + 4], 0
mov dword [esp], 0x426418
call sub.msvcrt.dll_memset
mov dword [ebp - 0x188], 0x1f400
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x58]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x54]
add eax, 0x76c
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__04d__02d__02d_02d__02d__02d
lea eax, [ebp - 0x178]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x178]
mov dword [esp], eax
call fcn.00402540
mov dword [esp + 8], str.Calling_CA4XML
mov dword [esp + 4], 0x4064d1
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [ebp - 0x188]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x426418
mov eax, dword [ebp - 0x184]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x407018
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x178]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x3e8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00402190
mov dword [ebp - 0x194], eax
mov dword [esp + 8], str.Finalizing
mov dword [esp + 4], 0x4064d1
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x407010]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
cmp dword [ebp - 0x34], 0
je 0x402c29
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
jne 0x402c29
cmp dword [ebp - 0x30], 0
jne 0x402c41
mov dword [esp], str._n
call sub.msvcrt.dll_puts
mov dword [esp], 0x426418
call sub.msvcrt.dll_puts
cmp dword [ebp - 0x30], 0
je 0x402c82
mov eax, dword [ebp - 0x194]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4066f6
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], 0x426418
call sub.msvcrt.dll_fputs
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
cmp dword [ebp - 0x28], 0
je 0x402d12
cmp dword [ebp - 0x194], 0
js 0x402d12
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
jne 0x402d12
cmp dword [ebp - 0x24], 0
jne 0x402cca
mov dword [esp + 8], 0x465
mov dword [esp + 4], str.main.c
mov dword [esp], str.entrada___NULL
call sub.msvcrt.dll__assert
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_remove
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x402d12
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.No_se_puede_eliminar_archivo__entrada_
mov dword [esp], str._s:___s___Err:__s_n
call sub.msvcrt.dll_printf
cmp dword [ebp - 0x194], 0
jle 0x402d27
mov dword [ebp - 0x32c], 0
jmp 0x402d31
mov dword [ebp - 0x32c], 1
mov eax, dword [ebp - 0x32c]
leave
ret