Function at 0x522140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
push esi
push edi
lea edi, [ebp - 0xa40]
mov ecx, 0x290
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5759c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
add eax, 0x5e8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0xffffffff
mov al, byte [0x5772ba]
mov byte [ebp - 0x120], al
push 0xff
push 0
lea ecx, [ebp - 0x11f]
push ecx
call fcn.00471293
add esp, 0xc
lea edx, [ebp - 0x1a8]
mov dword [ebp - 0x5d0], edx
mov eax, dword [ebp - 0x5d0]
mov dword [ebp - 0x5d4], eax
mov ecx, dword [ebp - 0x5d0]
mov dword [ebp - 0x5d8], ecx
mov dword [ebp - 0x9ec], 0
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x380]
mov dword [ebp - 0x9f0], edx
mov dword [ebp - 0x9f8], 0
xor eax, eax
mov word [ebp - 0xa00], ax
xor ecx, ecx
mov word [ebp - 0xa04], cx
mov byte [ebp - 0xa09], 1
mov dword [ebp - 0xa10], 0
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x380], 0
je 0x5225a8
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x380]
push edx
call fcn.00472f49
add esp, 4
cmp eax, 1
jbe 0x5225a8
mov eax, dword [ebp - 0x9f0]
push eax
call fcn.00472f49
add esp, 4
cmp eax, 0x41
jae 0x522279
mov dword [ebp - 0xa30], 0x41
jmp 0x52228e
mov ecx, dword [ebp - 0x9f0]
push ecx
call fcn.00472f49
add esp, 4
mov dword [ebp - 0xa30], eax
mov edx, dword [ebp - 0xa30]
mov dword [ebp - 0xa14], edx
mov eax, dword [ebp - 0x9f0]
mov dword [ebp - 0xa18], eax
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa24], 0
mov esi, esp
push 1
mov ecx, dword [ebp - 0xa14]
add ecx, 1
push ecx
call dword [0x56801c]
add esp, 8
cmp esi, esp
call fcn.00471e7d
mov dword [ebp - 0xa10], eax
cmp dword [ebp - 0xa10], 0
jne 0x5222fb
mov eax, 0x1b
jmp 0x522ece
mov edx, dword [ebp - 0x9f0]
movsx eax, byte [edx]
cmp eax, 0x5b
jne 0x522360
mov ecx, dword [ebp - 0x9f0]
add ecx, 1
mov dword [ebp - 0xa18], ecx
push 0x5d
mov edx, dword [ebp - 0x9f0]
push edx
call fcn.0047087f
add esp, 8
mov dword [ebp - 0xa1c], eax
cmp dword [ebp - 0xa1c], 0
je 0x52235b
mov eax, dword [ebp - 0xa1c]
sub eax, dword [ebp - 0xa18]
push eax
mov ecx, dword [ebp - 0xa18]
push ecx
mov edx, dword [ebp - 0xa10]
push edx
call fcn.004725c6
add esp, 0xc
jmp 0x522430
mov eax, dword [ebp - 0x9f0]
movsx ecx, byte [eax]
cmp ecx, 0x3a
jne 0x52237f
mov edx, dword [ebp - 0x9f0]
mov dword [ebp - 0xa1c], edx
jmp 0x522430
push 0x3a
mov eax, dword [ebp - 0x9f0]
push eax
call fcn.0047087f
add esp, 8
mov dword [ebp - 0xa1c], eax
cmp dword [ebp - 0xa1c], 0
je 0x52241a
mov ecx, dword [ebp - 0x5d8]
push ecx
mov edx, dword [ebp - 0x9f0]
push edx
push 0x17
call fcn.00470acd
add esp, 0xc
cmp eax, 1
jne 0x5223f5
xor eax, eax
mov word [ebp - 0xa04], ax
mov cx, word [ebp - 0xa04]
mov word [ebp - 0xa00], cx
mov edx, dword [ebp - 0x9f0]
push edx
mov eax, dword [ebp - 0xa10]
push eax
call fcn.00471b4e
add esp, 8
mov dword [ebp - 0xa1c], 0
jmp 0x522418
mov ecx, dword [ebp - 0xa1c]
sub ecx, dword [ebp - 0xa18]
push ecx
mov edx, dword [ebp - 0x9f0]
push edx
mov eax, dword [ebp - 0xa10]
push eax
call fcn.004725c6
add esp, 0xc
jmp 0x522430
mov ecx, dword [ebp - 0x9f0]
push ecx
mov edx, dword [ebp - 0xa10]
push edx
call fcn.00471b4e
add esp, 8
cmp dword [ebp - 0xa1c], 0
je 0x5224d9
push 0x3a
mov eax, dword [ebp - 0xa1c]
push eax
call fcn.0047087f
add esp, 8
mov dword [ebp - 0xa20], eax
cmp dword [ebp - 0xa20], 0
je 0x5224d9
push 0xa
push 0
mov ecx, dword [ebp - 0xa20]
add ecx, 1
push ecx
call fcn.00471c75
add esp, 0xc
push eax
call fcn.00472e5e
add esp, 4
mov word [ebp - 0xa00], ax
push 0x2d
mov edx, dword [ebp - 0xa20]
push edx
call fcn.0047087f
add esp, 8
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
je 0x5224cb
push 0xa
push 0
mov eax, dword [ebp - 0xa24]
add eax, 1
push eax
call fcn.00471c75
add esp, 0xc
push eax
call fcn.00472e5e
add esp, 4
mov word [ebp - 0xa04], ax
jmp 0x5224d9
mov cx, word [ebp - 0xa00]
mov word [ebp - 0xa04], cx
movzx edx, word [ebp - 0xa00]
movzx eax, word [ebp - 0xa04]
cmp edx, eax
jle 0x522502
xor ecx, ecx
mov word [ebp - 0xa04], cx
mov dx, word [ebp - 0xa04]
mov word [ebp - 0xa00], dx
mov eax, dword [ebp - 0xa10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x52259e
push 0x401
lea edx, [ebp - 0x5c8]
push edx
mov eax, dword [ebp - 0xa10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00470753
add esp, 4
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
push edx
call fcn.0047010e
add esp, 0x18
mov dword [ebp - 0xa34], eax
cmp dword [ebp - 0xa34], 0
je 0x522578
cmp dword [ebp - 0xa34], 1
je 0x522586
cmp dword [ebp - 0xa34], 2
je 0x522590
jmp 0x52259c
mov eax, dword [ebp - 0xa10]
mov dword [ebp - 0x9ec], eax
jmp 0x52259c
mov eax, 0x1e
jmp 0x522ece
lea ecx, [ebp - 0x5c8]
mov dword [ebp - 0x9ec], ecx
jmp 0x5225a8
mov dword [ebp - 0x9ec], 0
cmp dword [ebp - 0x9ec], 0
jne 0x5226c3
mov dword [ebp - 0x1bc], 0x80
mov esi, esp
lea edx, [ebp - 0x1bc]
push edx
mov eax, dword [ebp - 0x5d0]
push eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x190]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00471e7d
test eax, eax
je 0x522644
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004711a8
add esp, 8
push eax
push 0x571104
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a30
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 0xa10]
push ecx
call dword [0x568010]
add esp, 4
cmp esi, esp
call fcn.00471e7d
mov eax, 0x1e
jmp 0x522ece
mov edx, dword [ebp - 0x5d0]
movzx eax, word [edx]
mov dword [ebp - 0xa38], eax
cmp dword [ebp - 0xa38], 0x17
je 0x52265e
jmp 0x522688
push 0x401
lea ecx, [ebp - 0x5c8]
push ecx
mov edx, dword [ebp - 0x5d8]
add edx, 8
push edx
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax]
push ecx
call fcn.0047064f
add esp, 0x10
jmp 0x5226b0
push 0x401
lea edx, [ebp - 0x5c8]
push edx
mov eax, dword [ebp - 0x5d4]
add eax, 4
push eax
mov ecx, dword [ebp - 0x5d0]
movzx edx, word [ecx]
push edx
call fcn.0047064f
add esp, 0x10
lea eax, [ebp - 0x5c8]
mov dword [ebp - 0x9ec], eax
mov byte [ebp - 0xa09], 0
lea ecx, [ebp - 0x9f8]
push ecx
push 0
mov edx, dword [ebp - 0x9ec]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00472ee5
add esp, 0x10
mov dword [ebp - 0x9e4], eax
cmp dword [ebp - 0x9e4], 1
jne 0x522701
lea ecx, [ebp - 0x9f8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047316a
add esp, 8
cmp dword [ebp - 0x9f8], 0
je 0x52272d
mov eax, dword [ebp - 0x9f8]
mov ecx, dword [eax]
mov dword [ebp - 0x1b0], ecx
mov edx, dword [ebp - 0x9f8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00470b9f
add esp, 8
jmp 0x522737
mov dword [ebp - 0x1b0], 0
cmp dword [ebp - 0x1b0], 0
jne 0x52277b
mov ecx, dword [ebp - 0x9ec]
push ecx
push str.failed_to_resolve_the_address_provided_to_PORT:__s
mov edx, dword [ebp - 0x10]
push edx
call fcn.00472a30
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0xa10]
push eax
call dword [0x568010]
add esp, 4
cmp esi, esp
call fcn.00471e7d
mov eax, 0x1e
jmp 0x522ece
mov esi, esp
mov ecx, dword [ebp - 0xa10]
push ecx
call dword [0x568010]
add esp, 4
cmp esi, esp
call fcn.00471e7d
mov dword [ebp - 0x9ec], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x9e8], 0
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], edx
jmp 0x5227cc
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1b4], ecx
cmp dword [ebp - 0x1b4], 0
je 0x522812
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x1b4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00473368
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x52280e
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
mov dword [ebp - 0x9e8], eax
jmp 0x5227bd
jmp 0x522812
cmp dword [ebp - 0x1b4], 0
jne 0x52284a
mov edx, dword [ebp - 0x9e8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004711a8
add esp, 8
push eax
push 0x571154
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00472a30
add esp, 0xc
mov eax, 0x1e
jmp 0x522ece
mov edx, dword [ebp - 0x1b4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x5d0]
push eax
call fcn.0047289b
add esp, 0xc
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1bc], edx
mov ax, word [ebp - 0xa00]
mov word [ebp - 0xa08], ax
movzx ecx, word [ebp - 0xa08]
movzx edx, word [ebp - 0xa04]
cmp ecx, edx
jg 0x522a93
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x5228d1
mov esi, esp
movzx edx, word [ebp - 0xa08]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00471e7d
mov ecx, dword [ebp - 0x5d4]
mov word [ecx + 2], ax
jmp 0x5228f2
mov esi, esp
movzx edx, word [ebp - 0xa08]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00471e7d
mov ecx, dword [ebp - 0x5d8]
mov word [ecx + 2], ax
mov esi, esp
mov edx, dword [ebp - 0x1bc]
push edx
mov eax, dword [ebp - 0x5d0]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.00471e7d
test eax, eax
je 0x522a7a
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
mov dword [ebp - 0x9e8], eax
movzx edx, byte [ebp - 0xa09]
test edx, edx
je 0x522a1c
cmp dword [ebp - 0x9e8], 0x2741
jne 0x522a1c
mov eax, dword [ebp - 0x9e8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004711a8
add esp, 8
push eax
movzx edx, word [ebp - 0xa08]
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
mov eax, dword [ebp - 0x10]
push eax
call fcn.00470e9c
add esp, 0x10
mov dword [ebp - 0x1bc], 0x80
mov esi, esp
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x5d0]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x190]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00471e7d
test eax, eax
je 0x522a02
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004711a8
add esp, 8
push eax
push 0x571198
mov edx, dword [ebp - 0x10]
push edx
call fcn.00472a30
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00470140
add esp, 8
mov eax, 0x1e
jmp 0x522ece
mov dx, word [ebp - 0xa00]
mov word [ebp - 0xa08], dx
mov byte [ebp - 0xa09], 0
jmp 0x52288a
cmp dword [ebp - 0x9e8], 0x2740
je 0x522a78
cmp dword [ebp - 0x9e8], 0xd
je 0x522a78
mov eax, dword [ebp - 0x9e8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004711a8
add esp, 8
push eax
movzx edx, word [ebp - 0xa08]
push edx
push str.bind_port_hu__failed:__s
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a30
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00470140
add esp, 8
mov eax, 0x1e
jmp 0x522ece
jmp 0x522a7c
jmp 0x522a93
mov ax, word [ebp - 0xa08]
add ax, 1
mov word [ebp - 0xa08], ax
jmp 0x52288a
movzx ecx, word [ebp - 0xa08]
movzx edx, word [ebp - 0xa04]
cmp ecx, edx
jle 0x522ad0
push str.bind___failed__we_ran_out_of_ports_
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a30
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00470140
add esp, 8
mov eax, 0x1e
jmp 0x522ece
mov dword [ebp - 0x1bc], 0x80
mov esi, esp
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x5d0]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00471e7d
test eax, eax
je 0x522b47
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004711a8
add esp, 8
push eax
push str.getsockname___failed:__s
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00472a30
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00470140
add esp, 8
mov eax, 0x1e
jmp 0x522ece
mov esi, esp
push 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call fcn.00471e7d
test eax, eax
je 0x522ba8
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004711a8
add esp, 8
push eax
push str.socket_failure:__s
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a30
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00470140
add esp, 8
mov eax, 0x1e
jmp 0x522ece
push 0x100
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.00472c83
add esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x379]
test eax, eax
jne 0x522be9
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x36f]
test edx, edx
je 0x522be9
mov eax, dword [ebp + 8]
mov byte [eax + 0x379], 1
jmp 0x522bf4
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], 2
je 0x522e80
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x379]
test eax, eax
jne 0x522c14
cmp dword [ebp + 0xc], 0
jne 0x522c14
jmp 0x522beb
cmp dword [ebp + 0xc], 1
jne 0x522c2a
mov ecx, dword [ebp - 0x5d0]
movzx edx, word [ecx]
cmp edx, 2
je 0x522c2a
jmp 0x522beb
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax]
mov dword [ebp - 0xa3c], ecx
cmp dword [ebp - 0xa3c], 2
je 0x522c4d
cmp dword [ebp - 0xa3c], 0x17
je 0x522c70
jmp 0x522c93
mov esi, esp
mov edx, dword [ebp - 0x5d4]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.00471e7d
mov word [ebp - 0xa08], ax
jmp 0x522c98
mov esi, esp
mov ecx, dword [ebp - 0x5d8]
movzx edx, word [ecx + 2]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.00471e7d
mov word [ebp - 0xa08], ax
jmp 0x522c98
jmp 0x522beb
cmp dword [ebp + 0xc], 0
jne 0x522d54
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x522cbc
mov dword [ebp - 0xa40], 1
jmp 0x522cc6
mov dword [ebp - 0xa40], 2
movzx edx, word [ebp - 0xa08]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0xa40]
push ecx
imul edx, dword [ebp + 0xc], 5
add edx, str.EPRT
push edx
push str._s__d_s_hu
mov eax, dword [ebp - 0xc]
push eax
call fcn.00471ac2
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x522d4f
mov ecx, dword [ebp - 8]
push ecx
call fcn.00472fe4
add esp, 4
push eax
push str.Failure_sending_EPRT_command:__s
mov edx, dword [ebp - 0x10]
push edx
call fcn.00472a30
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00470140
add esp, 8
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x5c], 1
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0051e490
add esp, 8
mov eax, dword [ebp - 8]
jmp 0x522ece
jmp 0x522e80
cmp dword [ebp + 0xc], 1
jne 0x522e7b
lea ecx, [ebp - 0x120]
mov dword [ebp - 0xa28], ecx
lea edx, [ebp - 0x9dc]
mov dword [ebp - 0xa2c], edx
cmp dword [ebp - 0xa28], 0
je 0x522dd5
mov eax, dword [ebp - 0xa28]
movsx ecx, byte [eax]
test ecx, ecx
je 0x522dd5
mov edx, dword [ebp - 0xa28]
movsx eax, byte [edx]
cmp eax, 0x2e
jne 0x522da5
mov ecx, dword [ebp - 0xa2c]
mov byte [ecx], 0x2c
jmp 0x522db5
mov edx, dword [ebp - 0xa2c]
mov eax, dword [ebp - 0xa28]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0xa2c]
add edx, 1
mov dword [ebp - 0xa2c], edx
mov eax, dword [ebp - 0xa28]
add eax, 1
mov dword [ebp - 0xa28], eax
jmp 0x522d76
mov ecx, dword [ebp - 0xa2c]
mov byte [ecx], 0
movzx edx, word [ebp - 0xa08]
and edx, 0xff
push edx
movzx eax, word [ebp - 0xa08]
sar eax, 8
push eax
push str.__d__d
push 0x14
mov ecx, dword [ebp - 0xa2c]
push ecx
call fcn.00472355
add esp, 0x14
lea edx, [ebp - 0x9dc]
push edx
imul eax, dword [ebp + 0xc], 5
add eax, str.EPRT
push eax
push 0x571288
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00471ac2
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x522e79
mov edx, dword [ebp - 8]
push edx
call fcn.00472fe4
add esp, 4
push eax
push str.Failure_sending_PORT_command:__s
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a30
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00470140
add esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0051e490
add esp, 8
mov eax, dword [ebp - 8]
jmp 0x522ece
jmp 0x522e80
jmp 0x522beb
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00521490
add esp, 4
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx + 0x190], eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
mov byte [edx + ecx + 0x371], 1
push 0x1c
mov eax, dword [ebp + 8]
push eax
call fcn.0051e490
add esp, 8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x522efc]
call fcn.0047194b
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471225
add esp, 0xa40
cmp ebp, esp
call fcn.00471e7d
mov esp, ebp
pop ebp
ret