Function at 0x40b610
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432a17
mov eax, dword fs:[0]
push eax
mov eax, 0x4958
call fcn.0040efa0
mov eax, dword [0x443054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x45e4]
call fcn.00402450
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401070
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x4964]
call fcn.0040c530
mov byte [ebp - 4], 2
push 1
lea ecx, [ebp - 0x48b4]
call fcn.0040c530
mov byte [ebp - 4], 3
push 0x1000
push 0
lea eax, [ebp - 0x4010]
push eax
call fcn.004102f0
add esp, 0xc
push 0x1000
push 0
lea ecx, [ebp - 0x3010]
push ecx
call fcn.004102f0
add esp, 0xc
push 0x1000
push 0
lea edx, [ebp - 0x2010]
push edx
call fcn.004102f0
add esp, 0xc
mov dword [ebp - 0x47a4], str.GlobalDanelecShare
mov dword [ebp - 0x47ac], 0x1000
mov eax, dword [ebp - 0x47a4]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x4780], eax
cmp dword [ebp - 0x4780], 0
jne 0x40b763
push 0x6e
push 0x4331f8
push 0x433200
call fcn.0040e190
add esp, 0xc
mov dword [ebp - 0x47a8], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47a8]
jmp 0x40c18c
mov ecx, dword [ebp - 0x47ac]
push ecx
push 0
push 0
push 0xf001f
mov edx, dword [ebp - 0x4780]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x477c], eax
cmp dword [ebp - 0x477c], 0
jne 0x40b804
push 0x76
push str.main
push str.error_:__s__d__n
call fcn.0040e190
add esp, 0xc
mov eax, dword [ebp - 0x4780]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x47b0], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47b0]
jmp 0x40c18c
push 0x1000
push 0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.004102f0
add esp, 0xc
mov dword [ebp - 0x4778], 0
jmp 0x40b835
mov edx, dword [ebp - 0x4778]
add edx, 1
mov dword [ebp - 0x4778], edx
cmp dword [ebp - 0x4778], 0x1000
jae 0x40b879
mov eax, dword [ebp - 0x477c]
add eax, dword [ebp - 0x4778]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40b856
jmp 0x40b879
mov edx, dword [ebp - 0x477c]
add edx, dword [ebp - 0x4778]
movsx eax, byte [edx]
sub eax, 0x80
mov ecx, dword [ebp - 0x4778]
mov byte [ebp + ecx - 0x1010], al
jmp 0x40b826
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x4790], edx
mov eax, dword [ebp - 0x4790]
push eax
push 0x433228
call fcn.0040e190
add esp, 8
push 0x43322c
mov ecx, dword [ebp - 0x4790]
push ecx
call fcn.004175db
add esp, 8
push eax
push 0x433230
push 0xfff
lea edx, [ebp - 0x4010]
push edx
call fcn.0040e100
add esp, 0x10
push 0x433234
push 0
call fcn.004175db
add esp, 8
push eax
push 0x433238
push 0xfff
lea eax, [ebp - 0x3010]
push eax
call fcn.0040e100
add esp, 0x10
push 0x43323c
push 0
call fcn.004175db
add esp, 8
push eax
push 0x433240
push 0xfff
lea ecx, [ebp - 0x2010]
push ecx
call fcn.0040e100
add esp, 0x10
mov edx, dword [ebp - 0x477c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x4780]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x202
mov word [ebp - 0x4788], cx
lea edx, [ebp - 0x4774]
push edx
movzx eax, word [ebp - 0x4788]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x4794], eax
cmp dword [ebp - 0x4794], 0
je 0x40b9cb
mov ecx, dword [ebp - 0x4794]
push ecx
push str.WSAStartup_failed_with_error:__d_n
call fcn.0040e190
add esp, 8
mov dword [ebp - 0x4804], 0x3e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x4804]
jmp 0x40c18c
cmp dword [ebp + 8], 7
je 0x40ba3f
push str._nReads_a_data_item_from_the_cyclic_buffer_n
call fcn.0040e190
add esp, 4
push str._nUsage:_read_cyclic_data__ip___port___buffer_id___data_id___metadata_output_filename___data_output_filename__n_n
call fcn.0040e190
add esp, 4
mov dword [ebp - 0x4800], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x4800]
jmp 0x40c18c
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x4798], ecx
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call fcn.0041820f
add esp, 4
mov dword [ebp - 0x47fc], eax
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
push edx
call fcn.0041820f
add esp, 4
mov dword [ebp - 0x47e4], eax
mov eax, 4
shl eax, 2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
push edx
call fcn.0041820f
add esp, 4
mov dword [ebp - 0x47f0], eax
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x47c0], eax
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x47d0], ecx
push str.Initialializing_connection_n
call fcn.0040e190
add esp, 4
mov edx, dword [ebp - 0x4798]
push edx
call fcn.00417550
add esp, 4
push eax
mov eax, dword [ebp - 0x4798]
push eax
lea ecx, [ebp - 0x45e4]
call fcn.00402ec0
movzx ecx, word [ebp - 0x47fc]
push ecx
lea ecx, [ebp - 0x45e4]
call fcn.00403450
lea edx, [ebp - 0x4010]
push edx
call fcn.00417550
add esp, 4
push eax
lea eax, [ebp - 0x4010]
push eax
lea ecx, [ebp - 0x45e4]
call fcn.00403690
lea ecx, [ebp - 0x3010]
push ecx
call fcn.00417550
add esp, 4
push eax
lea edx, [ebp - 0x3010]
push edx
lea ecx, [ebp - 0x45e4]
call fcn.00403c40
lea eax, [ebp - 0x2010]
push eax
call fcn.00417550
add esp, 4
push eax
lea ecx, [ebp - 0x2010]
push ecx
lea ecx, [ebp - 0x45e4]
call fcn.00404200
push str.Opening_connection_n
call fcn.0040e190
add esp, 4
lea ecx, [ebp - 0x45e4]
call fcn.00404cb0
mov dword [ebp - 0x478c], eax
cmp dword [ebp - 0x478c], 0
je 0x40bc54
lea edx, [ebp - 0x4040]
push edx
lea ecx, [ebp - 0x45e4]
call fcn.00402930
mov dword [ebp - 0x47f8], eax
mov eax, dword [ebp - 0x47f8]
mov dword [ebp - 0x47f4], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x47f4]
call fcn.00406830
push eax
lea ecx, [ebp - 0x45e4]
call fcn.00402920
push eax
push str.Open___failed_with_error_number__u_and_error_message___s__n
call fcn.0040e190
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4040]
call fcn.00406840
mov dword [ebp - 0x47ec], 2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47ec]
jmp 0x40c18c
push 0x989680
call fcn.00417614
add esp, 4
mov dword [ebp - 0x4784], eax
cmp dword [ebp - 0x4784], 0
jne 0x40bcd1
push str.Error_while_allocating_data_n
call fcn.0040e190
add esp, 4
mov dword [ebp - 0x47e8], 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47e8]
jmp 0x40c18c
push 0x989680
push 0
mov ecx, dword [ebp - 0x4784]
push ecx
call fcn.004102f0
add esp, 0xc
push 0x989680
mov edx, dword [ebp - 0x4784]
push edx
lea ecx, [ebp - 0x4158]
call fcn.004011e0
mov eax, dword [ebp - 0x47e4]
push eax
lea ecx, [ebp - 0x4158]
call fcn.00401220
mov ecx, dword [ebp - 0x47f0]
push ecx
lea ecx, [ebp - 0x4158]
call fcn.00401240
push 0
lea ecx, [ebp - 0x4158]
call fcn.00401260
push 0xffffffffffffffff
lea ecx, [ebp - 0x4158]
call fcn.00401280
push 0
lea ecx, [ebp - 0x4158]
call fcn.004012a0
push 0xffffffffffffffff
lea ecx, [ebp - 0x4158]
call fcn.004012c0
push str.Reading_data_n
call fcn.0040e190
add esp, 4
lea edx, [ebp - 0x4158]
push edx
lea ecx, [ebp - 0x45e4]
call fcn.00405880
mov dword [ebp - 0x478c], eax
cmp dword [ebp - 0x478c], 0
je 0x40be38
lea eax, [ebp - 0x4028]
push eax
lea ecx, [ebp - 0x45e4]
call fcn.00402930
mov dword [ebp - 0x47b4], eax
mov ecx, dword [ebp - 0x47b4]
mov dword [ebp - 0x47b8], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x47b8]
call fcn.00406830
push eax
lea ecx, [ebp - 0x45e4]
call fcn.00402920
push eax
push str.ReadCyclicData___failed_with_error_number__u_and_error_message___s__n
call fcn.0040e190
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4028]
call fcn.00406840
mov dword [ebp - 0x47bc], 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47bc]
jmp 0x40c18c
lea edx, [ebp - 0x479c]
push edx
lea eax, [ebp - 0x47c8]
push eax
lea ecx, [ebp - 0x4158]
call fcn.004012e0
lea ecx, [ebp - 0x47a0]
push ecx
lea edx, [ebp - 0x47d8]
push edx
lea ecx, [ebp - 0x4158]
call fcn.00401320
mov eax, dword [ebp - 0x47a0]
push eax
mov ecx, dword [ebp - 0x479c]
push ecx
push str.Metadata_size___u___Data_size___u_n
call fcn.0040e190
add esp, 0xc
push 0x40
push 0x32
mov edx, dword [ebp - 0x47c0]
push edx
lea ecx, [ebp - 0x4964]
call fcn.0040d310
mov eax, dword [ebp - 0x4964]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x4964]
call fcn.0040d150
movzx edx, al
test edx, edx
je 0x40bf1d
push str.Opening_metadata_file_failed_n
call fcn.0040e190
add esp, 4
mov dword [ebp - 0x47c4], 5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47c4]
jmp 0x40c18c
mov eax, dword [ebp - 0x479c]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x47c8]
push edx
lea ecx, [ebp - 0x4964]
call fcn.0040dd40
mov eax, dword [ebp - 0x4964]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x4964]
call fcn.0040d150
movzx edx, al
test edx, edx
je 0x40bfb8
push str.Writing_metadata_file_failed_n
call fcn.0040e190
add esp, 4
mov dword [ebp - 0x47cc], 6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47cc]
jmp 0x40c18c
push str.Metadata_file_written_successfully_n
call fcn.0040e190
add esp, 4
lea ecx, [ebp - 0x4964]
call fcn.0040d020
push 0x40
push 0x32
mov eax, dword [ebp - 0x47d0]
push eax
lea ecx, [ebp - 0x48b4]
call fcn.0040d310
mov ecx, dword [ebp - 0x48b4]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0x48b4]
call fcn.0040d150
movzx eax, al
test eax, eax
je 0x40c068
push str.Opening_data_file_failed_n
call fcn.0040e190
add esp, 4
mov dword [ebp - 0x47d4], 7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47d4]
jmp 0x40c18c
mov ecx, dword [ebp - 0x47a0]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0x47d8]
push eax
lea ecx, [ebp - 0x48b4]
call fcn.0040dd40
mov ecx, dword [ebp - 0x48b4]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0x48b4]
call fcn.0040d150
movzx eax, al
test eax, eax
je 0x40c103
push str.Writing_data_file_failed_n
call fcn.0040e190
add esp, 4
mov dword [ebp - 0x47dc], 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47dc]
jmp 0x40c18c
push str.Data_file_written_successfully_n
call fcn.0040e190
add esp, 4
lea ecx, [ebp - 0x48b4]
call fcn.0040d020
mov ecx, dword [ebp - 0x4784]
push ecx
call fcn.004175f9
add esp, 4
push str.Command_finished_successfully_n
call fcn.0040e190
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x47e0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48b4]
call fcn.0040c910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4964]
call fcn.0040c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4158]
call fcn.00401170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45e4]
call fcn.004027c0
mov eax, dword [ebp - 0x47e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ef8b
mov esp, ebp
pop ebp
ret