Function at 0x545040
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x43c
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00549f50
cmp eax, 1
je 0x545068
xor eax, eax
jmp 0x5452df
mov eax, 1
test eax, eax
je 0x5451da
mov dword [ebp - 0x434], 0
mov cl, byte [0x6e47cc]
mov byte [ebp - 0x430], cl
push 0x400
push 0
lea edx, [ebp - 0x42f]
push edx
call fcn.004bee40
add esp, 0xc
mov al, byte [0x6e47cc]
mov byte [ebp - 0x24], al
xor ecx, ecx
mov dword [ebp - 0x23], ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0xc], 0
je 0x5450dd
mov edx, dword [ebp - 0x28]
or edx, 0xa
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
push 0x20
lea ecx, [ebp - 0x24]
push ecx
push 0x401
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005453a0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00545380
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x54515e
push 0xd7
push str.crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.004e9ee0
add esp, 0x14
mov edx, dword [ebp - 0x434]
push edx
call fcn.005452f0
add esp, 4
push eax
push 1
call fcn.004eaf40
add esp, 8
xor eax, eax
jmp 0x5452df
movsx eax, byte [ebp - 0x24]
test eax, eax
jne 0x545193
mov ecx, dword [ebp + 8]
push ecx
call fcn.00544fd0
add esp, 4
movzx edx, ax
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx eax, ax
push eax
push 0x673c78
push 0x20
lea ecx, [ebp - 0x24]
push ecx
call fcn.00503f00
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x5451b7
push 0xe9
push str.crypto_bio_b_addr.c
lea edx, [ebp - 0x430]
push edx
call fcn.0050fca0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp + 0x14], 0
je 0x5451d8
push 0xeb
push str.crypto_bio_b_addr.c
lea edx, [ebp - 0x24]
push edx
call fcn.0050fca0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x545251
cmp dword [ebp + 0x10], 0
je 0x545205
push 0xef
push str.crypto_bio_b_addr.c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
call fcn.0050fca0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp + 0x14], 0
je 0x545251
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx ecx, ax
push ecx
push 0x673c78
push 6
lea edx, [ebp - 0x43c]
push edx
call fcn.00503f00
add esp, 0x10
push 0xf3
push str.crypto_bio_b_addr.c
lea eax, [ebp - 0x43c]
push eax
call fcn.0050fca0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp + 0x10], 0
je 0x54525f
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x54526d
cmp dword [ebp + 0x14], 0
je 0x5452da
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x5452da
cmp dword [ebp + 0x10], 0
je 0x545294
push 0xfa
push str.crypto_bio_b_addr.c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.004f4cb0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x5452bb
push 0xfe
push str.crypto_bio_b_addr.c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call fcn.004f4cb0
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0x101
push str.crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.004e9ee0
add esp, 0x14
xor eax, eax
jmp 0x5452df
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret