Function at 0x52f550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x78
mov eax, dword [ebp + 8]
push eax
call fcn.0052d290
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x52f594
cmp dword [ebp - 4], 0
jne 0x52f58a
push 0x114
push 0x77c188
push str.conf_port
call fcn.0040606e
add esp, 0xc
mov eax, 0x11177
jmp 0x52fa22
xor edx, edx
jne 0x52f567
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403413
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 3
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 3
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0x80
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x80
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052d290
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x52f623
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x52f619
push 0x124
push 0x77c238
push str.conf_port__listener_slots
call fcn.0040606e
add esp, 0xc
mov eax, 0x11177
jmp 0x52fa22
xor edx, edx
jne 0x52f5f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052d290
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1c], 0
jne 0x52f676
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x52f66c
push 0x129
push 0x77c308
push str.conf_port__listener_adj_level
call fcn.0040606e
add esp, 0xc
mov eax, 0x11177
jmp 0x52fa22
xor edx, edx
jne 0x52f643
cmp dword [ebp + 0x10], 0
je 0x52f6c8
push 1
mov eax, dword [ebp + 0x10]
add eax, 0x10
push eax
call fcn.00404ff2
add esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0052d2e0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov dword [edx + 0x2c], ecx
jmp 0x52f6f6
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x74]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x78]
shl ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052d290
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x24]
cmp ecx, dword [eax + 0x70]
je 0x52f802
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
and eax, 8
jne 0x52f736
mov dword [ebp - 0x1c], 1
jmp 0x52f73d
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
and eax, 4
jne 0x52f756
mov dword [ebp - 0x20], 1
jmp 0x52f75d
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 4]
add edx, 0x44
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x78]
imul eax, dword [ecx + 0x24]
mov ecx, dword [ebp + 0xc]
xor edx, edx
div dword [ecx + 0x70]
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x70]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x74]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405448
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x52f7ba
mov eax, dword [ebp - 0xc]
jmp 0x52fa22
mov edx, dword [ebp - 4]
add edx, 0x48
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x78]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x70]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x74]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405448
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x52f802
mov eax, dword [ebp - 0xc]
jmp 0x52fa22
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x24]
cmp ecx, dword [eax + 0x70]
jne 0x52f830
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x2c]
cmp ecx, dword [eax + 0x74]
jne 0x52f830
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x28]
cmp ecx, dword [eax + 0x78]
je 0x52f9be
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
xor edx, edx
div dword [ecx + 0x2c]
imul eax, eax, 0x3e8
mov ecx, dword [ebp - 4]
xor edx, edx
div dword [ecx + 0x24]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x78]
xor edx, edx
div dword [ecx + 0x74]
imul eax, eax, 0x3e8
mov ecx, dword [ebp + 0xc]
xor edx, edx
div dword [ecx + 0x70]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jbe 0x52f893
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
div dword [ebp - 0x10]
test edx, edx
je 0x52f891
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
jmp 0x52f8ae
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x14]
test edx, edx
je 0x52f8ae
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x24]
imul eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x2c]
cmp edx, dword [ecx + 0x74]
jbe 0x52f8ea
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x50]
imul edx, dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], edx
jmp 0x52f8fd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x50]
imul eax, dword [edx + 0x74]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
shl ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040199c
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
jne 0x52f955
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
jne 0x52f94b
push 0x196
push 0x77c3e0
push str.conf_port__rx_buf
call fcn.0040606e
add esp, 0xc
mov eax, 0x11177
jmp 0x52fa22
xor edx, edx
jne 0x52f922
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
shl edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040199c
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x64], 0
jne 0x52f9ba
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
jne 0x52f9b3
push 0x19e
push 0x77c4a0
push str.conf_port__tx_buf
call fcn.0040606e
add esp, 0xc
mov eax, 0x11177
jmp 0x52fa22
xor edx, edx
jne 0x52f98a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x78]
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052d290
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x60], 0
jne 0x52fa0a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x60], 0
jne 0x52fa03
push 0x1a6
push 0x77c560
push str.conf_port__mix_buf
call fcn.0040606e
add esp, 0xc
mov eax, 0x11177
jmp 0x52fa22
xor edx, edx
jne 0x52f9da
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], 0x80
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
xor eax, eax
mov esp, ebp
pop ebp
ret