Function at 0x521be0
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 [0x5749c0]
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 [0x57631a]
mov byte [ebp - 0x120], al
push 0xff
push 0
lea ecx, [ebp - 0x11f]
push ecx
call fcn.0047127a
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 0x522048
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x380]
push edx
call fcn.00472f0d
add esp, 4
cmp eax, 1
jbe 0x522048
mov eax, dword [ebp - 0x9f0]
push eax
call fcn.00472f0d
add esp, 4
cmp eax, 0x41
jae 0x521d19
mov dword [ebp - 0xa30], 0x41
jmp 0x521d2e
mov ecx, dword [ebp - 0x9f0]
push ecx
call fcn.00472f0d
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 [0x56701c]
add esp, 8
cmp esi, esp
call fcn.00471e55
mov dword [ebp - 0xa10], eax
cmp dword [ebp - 0xa10], 0
jne 0x521d9b
mov eax, 0x1b
jmp 0x52296e
mov edx, dword [ebp - 0x9f0]
movsx eax, byte [edx]
cmp eax, 0x5b
jne 0x521e00
mov ecx, dword [ebp - 0x9f0]
add ecx, 1
mov dword [ebp - 0xa18], ecx
push 0x5d
mov edx, dword [ebp - 0x9f0]
push edx
call fcn.0047086b
add esp, 8
mov dword [ebp - 0xa1c], eax
cmp dword [ebp - 0xa1c], 0
je 0x521dfb
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.004725b7
add esp, 0xc
jmp 0x521ed0
mov eax, dword [ebp - 0x9f0]
movsx ecx, byte [eax]
cmp ecx, 0x3a
jne 0x521e1f
mov edx, dword [ebp - 0x9f0]
mov dword [ebp - 0xa1c], edx
jmp 0x521ed0
push 0x3a
mov eax, dword [ebp - 0x9f0]
push eax
call fcn.0047086b
add esp, 8
mov dword [ebp - 0xa1c], eax
cmp dword [ebp - 0xa1c], 0
je 0x521eba
mov ecx, dword [ebp - 0x5d8]
push ecx
mov edx, dword [ebp - 0x9f0]
push edx
push 0x17
call fcn.00470abe
add esp, 0xc
cmp eax, 1
jne 0x521e95
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.00471b1c
add esp, 8
mov dword [ebp - 0xa1c], 0
jmp 0x521eb8
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.004725b7
add esp, 0xc
jmp 0x521ed0
mov ecx, dword [ebp - 0x9f0]
push ecx
mov edx, dword [ebp - 0xa10]
push edx
call fcn.00471b1c
add esp, 8
cmp dword [ebp - 0xa1c], 0
je 0x521f79
push 0x3a
mov eax, dword [ebp - 0xa1c]
push eax
call fcn.0047086b
add esp, 8
mov dword [ebp - 0xa20], eax
cmp dword [ebp - 0xa20], 0
je 0x521f79
push 0xa
push 0
mov ecx, dword [ebp - 0xa20]
add ecx, 1
push ecx
call fcn.00471c48
add esp, 0xc
push eax
call fcn.00472e27
add esp, 4
mov word [ebp - 0xa00], ax
push 0x2d
mov edx, dword [ebp - 0xa20]
push edx
call fcn.0047086b
add esp, 8
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
je 0x521f6b
push 0xa
push 0
mov eax, dword [ebp - 0xa24]
add eax, 1
push eax
call fcn.00471c48
add esp, 0xc
push eax
call fcn.00472e27
add esp, 4
mov word [ebp - 0xa04], ax
jmp 0x521f79
mov cx, word [ebp - 0xa00]
mov word [ebp - 0xa04], cx
movzx edx, word [ebp - 0xa00]
movzx eax, word [ebp - 0xa04]
cmp edx, eax
jle 0x521fa2
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 0x52203e
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.0047073f
add esp, 4
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
push edx
call fcn.00470113
add esp, 0x18
mov dword [ebp - 0xa34], eax
cmp dword [ebp - 0xa34], 0
je 0x522018
cmp dword [ebp - 0xa34], 1
je 0x522026
cmp dword [ebp - 0xa34], 2
je 0x522030
jmp 0x52203c
mov eax, dword [ebp - 0xa10]
mov dword [ebp - 0x9ec], eax
jmp 0x52203c
mov eax, 0x1e
jmp 0x52296e
lea ecx, [ebp - 0x5c8]
mov dword [ebp - 0x9ec], ecx
jmp 0x522048
mov dword [ebp - 0x9ec], 0
cmp dword [ebp - 0x9ec], 0
jne 0x522163
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.00471e55
test eax, eax
je 0x5220e4
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00471194
add esp, 8
push eax
push 0x570104
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a1c
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 0xa10]
push ecx
call dword [0x567010]
add esp, 4
cmp esi, esp
call fcn.00471e55
mov eax, 0x1e
jmp 0x52296e
mov edx, dword [ebp - 0x5d0]
movzx eax, word [edx]
mov dword [ebp - 0xa38], eax
cmp dword [ebp - 0xa38], 0x17
je 0x5220fe
jmp 0x522128
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.00470640
add esp, 0x10
jmp 0x522150
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.00470640
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.00472eae
add esp, 0x10
mov dword [ebp - 0x9e4], eax
cmp dword [ebp - 0x9e4], 1
jne 0x5221a1
lea ecx, [ebp - 0x9f8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00473124
add esp, 8
cmp dword [ebp - 0x9f8], 0
je 0x5221cd
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.00470b90
add esp, 8
jmp 0x5221d7
mov dword [ebp - 0x1b0], 0
cmp dword [ebp - 0x1b0], 0
jne 0x52221b
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.00472a1c
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0xa10]
push eax
call dword [0x567010]
add esp, 4
cmp esi, esp
call fcn.00471e55
mov eax, 0x1e
jmp 0x52296e
mov esi, esp
mov ecx, dword [ebp - 0xa10]
push ecx
call dword [0x567010]
add esp, 4
cmp esi, esp
call fcn.00471e55
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 0x52226c
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1b4], ecx
cmp dword [ebp - 0x1b4], 0
je 0x5222b2
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x1b4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00473327
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5222ae
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
mov dword [ebp - 0x9e8], eax
jmp 0x52225d
jmp 0x5222b2
cmp dword [ebp - 0x1b4], 0
jne 0x5222ea
mov edx, dword [ebp - 0x9e8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00471194
add esp, 8
push eax
push 0x570154
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00472a1c
add esp, 0xc
mov eax, 0x1e
jmp 0x52296e
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.0047288c
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 0x522533
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x522371
mov esi, esp
movzx edx, word [ebp - 0xa08]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00471e55
mov ecx, dword [ebp - 0x5d4]
mov word [ecx + 2], ax
jmp 0x522392
mov esi, esp
movzx edx, word [ebp - 0xa08]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00471e55
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.00471e55
test eax, eax
je 0x52251a
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
mov dword [ebp - 0x9e8], eax
movzx edx, byte [ebp - 0xa09]
test edx, edx
je 0x5224bc
cmp dword [ebp - 0x9e8], 0x2741
jne 0x5224bc
mov eax, dword [ebp - 0x9e8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471194
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.00470e79
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.00471e55
test eax, eax
je 0x5224a2
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471194
add esp, 8
push eax
push 0x570198
mov edx, dword [ebp - 0x10]
push edx
call fcn.00472a1c
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047014a
add esp, 8
mov eax, 0x1e
jmp 0x52296e
mov dx, word [ebp - 0xa00]
mov word [ebp - 0xa08], dx
mov byte [ebp - 0xa09], 0
jmp 0x52232a
cmp dword [ebp - 0x9e8], 0x2740
je 0x522518
cmp dword [ebp - 0x9e8], 0xd
je 0x522518
mov eax, dword [ebp - 0x9e8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471194
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.00472a1c
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047014a
add esp, 8
mov eax, 0x1e
jmp 0x52296e
jmp 0x52251c
jmp 0x522533
mov ax, word [ebp - 0xa08]
add ax, 1
mov word [ebp - 0xa08], ax
jmp 0x52232a
movzx ecx, word [ebp - 0xa08]
movzx edx, word [ebp - 0xa04]
cmp ecx, edx
jle 0x522570
push str.bind___failed__we_ran_out_of_ports_
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a1c
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047014a
add esp, 8
mov eax, 0x1e
jmp 0x52296e
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.00471e55
test eax, eax
je 0x5225e7
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471194
add esp, 8
push eax
push str.getsockname___failed:__s
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00472a1c
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0047014a
add esp, 8
mov eax, 0x1e
jmp 0x52296e
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.00471e55
test eax, eax
je 0x522648
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00471194
add esp, 8
push eax
push str.socket_failure:__s
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a1c
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047014a
add esp, 8
mov eax, 0x1e
jmp 0x52296e
push 0x100
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.00472c60
add esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x379]
test eax, eax
jne 0x522689
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x36f]
test edx, edx
je 0x522689
mov eax, dword [ebp + 8]
mov byte [eax + 0x379], 1
jmp 0x522694
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], 2
je 0x522920
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x379]
test eax, eax
jne 0x5226b4
cmp dword [ebp + 0xc], 0
jne 0x5226b4
jmp 0x52268b
cmp dword [ebp + 0xc], 1
jne 0x5226ca
mov ecx, dword [ebp - 0x5d0]
movzx edx, word [ecx]
cmp edx, 2
je 0x5226ca
jmp 0x52268b
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax]
mov dword [ebp - 0xa3c], ecx
cmp dword [ebp - 0xa3c], 2
je 0x5226ed
cmp dword [ebp - 0xa3c], 0x17
je 0x522710
jmp 0x522733
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.00471e55
mov word [ebp - 0xa08], ax
jmp 0x522738
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.00471e55
mov word [ebp - 0xa08], ax
jmp 0x522738
jmp 0x52268b
cmp dword [ebp + 0xc], 0
jne 0x5227f4
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x52275c
mov dword [ebp - 0xa40], 1
jmp 0x522766
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.00471a90
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5227ef
mov ecx, dword [ebp - 8]
push ecx
call fcn.00472fa3
add esp, 4
push eax
push str.Failure_sending_EPRT_command:__s
mov edx, dword [ebp - 0x10]
push edx
call fcn.00472a1c
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047014a
add esp, 8
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x5c], 1
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0051df30
add esp, 8
mov eax, dword [ebp - 8]
jmp 0x52296e
jmp 0x522920
cmp dword [ebp + 0xc], 1
jne 0x52291b
lea ecx, [ebp - 0x120]
mov dword [ebp - 0xa28], ecx
lea edx, [ebp - 0x9dc]
mov dword [ebp - 0xa2c], edx
cmp dword [ebp - 0xa28], 0
je 0x522875
mov eax, dword [ebp - 0xa28]
movsx ecx, byte [eax]
test ecx, ecx
je 0x522875
mov edx, dword [ebp - 0xa28]
movsx eax, byte [edx]
cmp eax, 0x2e
jne 0x522845
mov ecx, dword [ebp - 0xa2c]
mov byte [ecx], 0x2c
jmp 0x522855
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 0x522816
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.00472341
add esp, 0x14
lea edx, [ebp - 0x9dc]
push edx
imul eax, dword [ebp + 0xc], 5
add eax, str.EPRT
push eax
push 0x570288
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00471a90
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x522919
mov edx, dword [ebp - 8]
push edx
call fcn.00472fa3
add esp, 4
push eax
push str.Failure_sending_PORT_command:__s
mov eax, dword [ebp - 0x10]
push eax
call fcn.00472a1c
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047014a
add esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0051df30
add esp, 8
mov eax, dword [ebp - 8]
jmp 0x52296e
jmp 0x522920
jmp 0x52268b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00520f30
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.0051df30
add esp, 8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x52299c]
call fcn.00471914
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047120c
add esp, 0xa40
cmp ebp, esp
call fcn.00471e55
mov esp, ebp
pop ebp
ret