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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59a321
push eax
mov dword fs:[0], esp
sub esp, 0xc34
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
je case.default.0x415b4b
mov eax, dword [esi + 0xbc]
cmp eax, 0xc
ja case.default.0x415b4b
jmp dword [eax*4 + 0x41640c]
mov dword [0x613250], 0x12c
jmp case.default.0x415b4b
mov dword [0x613250], 0x4b0
jmp case.default.0x415b4b
mov dword [0x613250], 0x960
jmp case.default.0x415b4b
mov dword [0x613250], 0x12c0
jmp case.default.0x415b4b
mov eax, dword [esi + 0x170]
jmp 0x415c00
mov dword [0x613250], 0x2580
jmp case.default.0x415b4b
mov dword [0x613250], 0x4b00
jmp case.default.0x415b4b
mov ecx, dword [esi + 0x218]
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x30]
dec ecx
je 0x415be5
dec ecx
je 0x415bda
dec ecx
jne 0x415c00
lea ecx, [eax + eax*4]
mov eax, 0x88888889
imul ecx
mov eax, edx
add eax, ecx
sar eax, 3
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
jmp 0x415c00
lea ecx, [eax*8]
sub ecx, eax
jmp 0x415beb
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*2]
mov eax, 0x88888889
imul ecx
mov eax, edx
add eax, ecx
sar eax, 3
mov edx, eax
shr edx, 0x1f
add eax, edx
mov dword [0x613250], eax
mov eax, dword [esi + 0x264]
mov ecx, dword [esi + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x1a8]
cmp ecx, ebx
je 0x415d82
mov edx, dword [ecx + 0x1070]
mov ebp, dword [ecx + 0x1074]
sub edx, ebp
and edx, 0x7ff
cmp edx, 0xbb7
jge 0x415cf1
mov edi, dword [ecx + 0x1070]
mov edx, ebp
sub edi, edx
and edi, 0x7ff
cmp edi, ebx
jle 0x415d82
xor edx, edx
cmp edi, ebx
mov byte [esp + 0x8c], bl
jle 0x415ca6
mov ebp, dword [ecx + 0x1074]
mov eax, dword [ecx + 0x1070]
cmp eax, ebp
je 0x415ca6
mov al, byte [ecx + ebp + 0x870]
inc ebp
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
and eax, 0xff
and ebp, 0x7ff
cmp eax, 0xffffffff
mov dword [ecx + 0x1074], ebp
je 0x415ca6
mov byte [esp + edx + 0x8c], al
inc edx
cmp edx, edi
jl 0x415c64
mov edx, dword [esi]
push ebx
lea eax, [esp + 0x90]
push edi
push eax
push 0x8c
mov ecx, esi
call dword [edx + 8]
cmp eax, ebx
jne 0x415d82
xor ebp, ebp
cmp edi, ebx
jle 0x415d68
mov cl, byte [esi + 0x1ac]
mov al, byte [esp + ebp + 0x8c]
cmp cl, 5
jne 0x415ce4
cmp al, 1
je 0x415cfb
inc ebp
mov byte [esi + 0x1ac], al
cmp ebp, edi
jl 0x415cce
jmp 0x415d68
mov edi, 0xbb7
jmp 0x415c57
mov edx, dword [esi]
push ebx
lea eax, [esp + 0x90]
push ebx
push eax
push 0x1f
mov ecx, esi
mov byte [esi + 0x1ac], 1
mov byte [esp + ebp + 0x9c], bl
call dword [edx + 8]
mov edx, dword [esi]
push ebx
push ebx
push ebx
push 0x8e
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push ebx
push 2
push 0x600fb0
push 0x8c
mov ecx, esi
call dword [eax + 8]
lea ecx, [edi - 1]
cmp ebp, ecx
jge 0x4163f2
mov edx, dword [esi]
sub edi, ebp
dec edi
push ebx
lea eax, [esp + ebp + 0x91]
push edi
push eax
push 0x8c
mov ecx, esi
call dword [edx + 8]
jmp 0x4163f2
mov edx, dword [esi]
push ebx
lea eax, [esp + 0x90]
push ebx
push eax
push 0x1f
mov ecx, esi
mov byte [esp + ebp + 0x9c], bl
call dword [edx + 8]
mov ecx, dword [esi + 0x1a8]
lea ebp, [esi + 0x60]
cmp ecx, ebx
je 0x415e5b
mov edx, dword [ebp]
mov edi, dword [edx - 8]
cmp edi, ebx
je 0x415e1a
mov eax, dword [ecx + 0x40]
cmp eax, 4
je 0x415dae
cmp eax, 5
je 0x415dae
xor eax, eax
jmp 0x415dbd
mov eax, 8
sub eax, dword [ecx + 0x86c]
imul eax, dword [ecx + 0x3c]
cmp edi, eax
jl 0x415de3
mov eax, dword [ecx + 0x40]
cmp eax, 4
je 0x415dd2
cmp eax, 5
je 0x415dd2
xor edi, edi
jmp 0x415de3
mov eax, dword [ecx + 0x86c]
mov edi, 8
sub edi, eax
imul edi, dword [ecx + 0x3c]
push edi
push edx
call fcn.0040b7e0
lea ecx, [esp + 0x14]
push edi
push ecx
mov ecx, ebp
call fcn.0056d1dd
push eax
mov ecx, ebp
mov dword [esp + 0xc50], ebx
call fcn.00575c21
lea ecx, [esp + 0x14]
mov dword [esp + 0xc4c], 0xffffffff
call fcn.00575ae8
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 0x40]
cmp eax, 4
je 0x415e31
cmp eax, 5
jne 0x415f90
mov edx, dword [ecx + 0x86c]
mov eax, 8
sub eax, edx
imul eax, dword [ecx + 0x3c]
cmp eax, ebx
je 0x415f90
mov edx, dword [esi]
push ebx
push ebx
push eax
push 0x21
mov ecx, esi
call dword [edx + 8]
jmp 0x415f90
mov eax, dword [ebp]
mov edi, dword [eax - 8]
cmp edi, ebx
je 0x415f90
mov eax, dword [esi + 0xc8]
cmp edi, eax
jl 0x415e75
mov edi, eax
mov byte [esp + 0x20], bl
mov byte [esp + 0x27], bl
mov dword [esp + 0xc4c], 1
mov byte [esp + 0x32], bl
mov byte [esp + 0x39], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x64
push 7
lea ecx, [esp + 0x48]
mov byte [esp + 0xc50], 3
mov dword [esp + 0x70], ebx
call fcn.0040ae50
mov ecx, 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ecx
mov eax, dword [ebp]
push edi
push eax
push 0xf0
push ebx
push ebx
push ebx
push ecx
push 0xa
lea eax, [esi + 0x124]
push ebx
push eax
lea eax, [esi + 0x112]
lea ecx, [esp + 0x48]
push eax
lea eax, [esi + 0x100]
push eax
mov dword [esp + 0xc7c], 4
call fcn.0040ca40
mov ecx, dword [esi + 0x264]
cmp ecx, ebx
je 0x415f12
lea edx, [esp + 0x20]
push edx
call fcn.0040ea30
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, ebp
call fcn.0056d1dd
push eax
mov ecx, ebp
mov byte [esp + 0xc50], 5
call fcn.00575c21
lea ecx, [esp + 0x14]
mov byte [esp + 0xc4c], 4
call fcn.00575ae8
mov ecx, dword [ebp]
mov edi, dword [ecx - 8]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc4c], 8
cmp eax, ebx
mov dword [esp + 0x44], ebx
je 0x415f66
push eax
call fcn.00571134
add esp, 4
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0xc4c], 7
cmp ecx, ebx
je 0x415f7d
push 3
call fcn.0040abd0
cmp edi, ebx
mov dword [esp + 0xc4c], 0xffffffff
jne 0x415e69
mov eax, dword [esi + 0x1a8]
cmp eax, ebx
je 0x4161e6
mov ecx, dword [esi + 0x180]
mov eax, dword [eax + 0x40]
xor edi, edi
cmp ecx, 2
mov dword [esp + 0x10], eax
jne 0x415ff8
cmp eax, 4
jne 0x415fd2
mov edx, dword [esi]
push ebx
push ebx
push str._CONNECTED._n
push 0x1f
mov ecx, esi
mov dword [esi + 0x3c], 1
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x180], 2
jne 0x415ff8
cmp eax, ebx
jne 0x415ff8
mov eax, dword [esi]
push ebx
push ebx
push str._FAILED:
push 0x1f
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esp + 0x10]
mov edi, 1
cmp dword [esi + 0x180], 3
je 0x41601a
cmp eax, 3
jne 0x41601a
mov edx, dword [esi]
push ebx
push ebx
push str._DISCONNECTING..._n
push 0x1f
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x180]
cmp ecx, 4
je 0x416033
cmp ecx, 5
je 0x416033
cmp ecx, 3
jne 0x41614a
cmp eax, ebx
jne 0x41614a
lea eax, [esp + 0x18]
push 0xc9f4
push eax
call fcn.005054c0
add esp, 8
mov ecx, dword [esi + 0x1a8]
mov dword [esp + 0xc4c], 9
add ecx, 0x16
call fcn.0040add0
push eax
lea ecx, [esp + 0x1c]
call fcn.00575ec4
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 0x28]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x416108
lea edx, [esp + 0x1c]
push 0xc991
push edx
call fcn.005054c0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc50], 0xa
call fcn.00575f00
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc4c], 9
call fcn.00575ae8
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
jle 0x416108
mov eax, dword [esi + 0x1a8]
xor ecx, ecx
add eax, 0x28
mov edx, dword [eax]
cmp edi, edx
mov edx, dword [eax + 8]
setge cl
dec ecx
and ecx, edi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*2]
call fcn.0040add0
push eax
lea ecx, [esp + 0x1c]
call fcn.00575ec4
push 0x5fe4c8
lea ecx, [esp + 0x1c]
call fcn.00575ec4
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4160c4
push 0x600f74
lea ecx, [esp + 0x1c]
call fcn.00575ec4
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ebx
push ebx
push ecx
push 0x1f
mov ecx, esi
call dword [eax + 8]
mov ecx, ebp
mov edi, 1
call fcn.00575a73
lea ecx, [esp + 0x18]
mov dword [esp + 0xc4c], 0xffffffff
call fcn.00575ae8
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x180], ebx
je 0x4161a7
cmp eax, ebx
jne 0x4161a7
mov eax, dword [esi + 0x1a8]
xor edx, edx
mov dword [esp + 0x7c], str.Normal._n
mov dword [esp + 0x80], str.DM_received._n
mov eax, dword [eax + 0x44]
mov dword [esp + 0x84], str.Timeout._n
cmp eax, ebx
mov dword [esp + 0x88], str.Link_redundant._n
setle dl
dec edx
push ebx
and eax, edx
mov edx, dword [esi]
push ebx
mov ecx, esi
mov eax, dword [esp + eax*4 + 0x84]
push eax
push 0x1f
call dword [edx + 8]
jmp 0x4161ab
cmp edi, ebx
je 0x4161dc
mov ecx, esi
call fcn.00415a30
mov ecx, dword [esi + 0x1a8]
push ecx
mov ecx, dword [esi + 0x264]
call fcn.0040f030
mov ecx, ebp
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x180], ebx
call fcn.00575a73
mov dword [esi + 0x3c], ebx
jmp 0x4161e6
mov edx, dword [esp + 0x10]
mov dword [esi + 0x180], edx
cmp dword [esi + 0x1a8], ebx
jne 0x4163dc
mov ecx, dword [esi + 0x264]
cmp dword [ecx + 0x170], ebx
je 0x4163dc
cmp dword [esi + 0x10], ebx
je 0x4163dc
call fcn.0040f000
cmp eax, ebx
mov dword [esi + 0x1a8], eax
je 0x4163dc
mov ecx, dword [0x614cb0]
mov dword [esp + 0x10], ecx
lea ecx, [eax + 0x16]
mov dword [esp + 0xc4c], 0xb
call fcn.0040add0
push eax
lea edx, [esp + 0x14]
push str._INCOMING_CONNECT_from__s
push edx
call fcn.0056d732
mov eax, dword [esi + 0x1a8]
add esp, 0xc
mov edi, dword [eax + 0x28]
cmp edi, ebx
je 0x4162ae
push 0x600e7c
lea ecx, [esp + 0x14]
call fcn.00575ec4
dec edi
cmp edi, ebx
jl 0x4162ae
mov eax, dword [esi + 0x1a8]
xor ecx, ecx
add eax, 0x28
mov ebp, dword [eax]
mov edx, dword [eax + 8]
cmp edi, ebp
setge cl
dec ecx
and ecx, edi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*2]
call fcn.0040add0
push eax
lea ecx, [esp + 0x14]
call fcn.00575ec4
push 0x5fe4c8
lea ecx, [esp + 0x14]
call fcn.00575ec4
dec edi
jns 0x416270
push 0x600f14
lea ecx, [esp + 0x14]
call fcn.00575ec4
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ebx
push ebx
push ecx
push 0x1f
mov ecx, esi
call dword [eax + 8]
mov ebp, dword [esi + 0x264]
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.0040f000
mov edi, eax
cmp edi, ebx
je 0x4163c1
mov byte [esp + 0x20], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x39], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x64
push 7
lea ecx, [esp + 0x48]
mov byte [esp + 0xc50], 0xe
mov dword [esp + 0x70], ebx
call fcn.0040ae50
mov eax, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push 3
lea edx, [edi + 0x28]
push ebx
lea eax, [edi + 0x16]
push edx
lea ecx, [edi + 4]
push eax
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0xc7c], 0xf
call fcn.0040ca40
lea edx, [esp + 0x20]
mov ecx, edi
push edx
call fcn.0040bc10
mov eax, dword [esp + 0x6c]
mov byte [esp + 0xc4c], 0x12
cmp eax, ebx
mov dword [esp + 0x44], ebx
je 0x41637b
push eax
call fcn.00571134
add esp, 4
mov eax, dword [esp + 0x4c]
mov byte [esp + 0xc4c], 0x11
cmp eax, ebx
je 0x4163ac
mov ecx, dword [eax - 4]
lea ebp, [eax - 4]
push fcn.004b9ef0
push ecx
push 0x12
push eax
call fcn.00557353
push ebp
call fcn.00571134
mov ebp, dword [esp + 0x20]
add esp, 4
mov ecx, edi
mov byte [esp + 0xc4c], 0xb
call fcn.0040bb50
mov dword [ebp + 0x170], ebx
lea ecx, [esp + 0x10]
mov dword [esi + 0x3c], 1
mov dword [esp + 0xc4c], 0xffffffff
call fcn.00575ae8
mov ecx, dword [esi + 0x264]
call fcn.0040f0d0
mov ecx, dword [esi + 0x264]
call fcn.0040f480
mov ecx, dword [esp + 0xc44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc40
ret