Function at 0x408bf1
Capabilities:
Read .ini file
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov dword [ebp - 0x1c], 0
xor eax, eax
mov ax, word [0x447b80]
cmp eax, 1
jl 0x408c37
xor ecx, ecx
mov cx, word [0x447b80]
cmp ecx, 0x1f4
jg 0x408c37
mov dx, word [0x447b95]
push edx
mov eax, dword [0x447b91]
push eax
push 1
call fcn.00409371
add esp, 0xc
mov cx, word [0x447b97]
push ecx
mov edx, dword [0x447b91]
push edx
push 2
call fcn.00409371
add esp, 0xc
xor eax, eax
mov ax, word [0x447b8f]
cmp eax, 1
jle 0x408e2c
cmp dword [0x447b91], 0
je 0x408e2c
mov word [ebp - 0x24], 0
jmp 0x408c82
mov cx, word [ebp - 0x24]
add cx, 1
mov word [ebp - 0x24], cx
mov edx, dword [ebp - 0x24]
and edx, 0xffff
xor eax, eax
mov ax, word [0x447b8f]
sub eax, 1
cmp edx, eax
jge 0x408e2c
mov dword [ebp - 0x238], 0xffffffff
mov ecx, dword [ebp - 0x24]
and ecx, 0xffff
cmp dword [ecx*8 + 0x447b99], 0
jne 0x408cbd
jmp 0x408c76
mov edx, dword [ebp - 0x24]
and edx, 0xffff
cmp dword [edx*8 + 0x447b99], 0xffffffff
jne 0x408cdd
mov eax, dword [0x447b91]
mov dword [ebp - 0x238], eax
jmp 0x408cf3
mov ecx, dword [ebp - 0x24]
and ecx, 0xffff
mov edx, dword [ecx*8 + 0x447b99]
mov dword [ebp - 0x238], edx
xor eax, eax
mov ax, word [0x447b80]
cmp eax, 1
jl 0x408da0
xor ecx, ecx
mov cx, word [0x447b80]
cmp ecx, 0x1f4
jg 0x408da0
mov edx, dword [ebp - 0x24]
and edx, 0xffff
xor eax, eax
mov ax, word [edx*8 + 0x447b9d]
cmp eax, 0xffff
jne 0x408d5c
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [0x447b91]
je 0x408d51
mov dx, word [0x447b95]
mov word [ebp - 0x23c], dx
jmp 0x408d5a
mov word [ebp - 0x23c], 0xffff
jmp 0x408d73
mov eax, dword [ebp - 0x24]
and eax, 0xffff
mov cx, word [eax*8 + 0x447b9d]
mov word [ebp - 0x23c], cx
mov edx, dword [ebp - 0x23c]
and edx, 0xffff
cmp edx, 0xffff
je 0x408da0
mov ax, word [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
push 1
call fcn.00409371
add esp, 0xc
mov edx, dword [ebp - 0x24]
and edx, 0xffff
xor eax, eax
mov ax, word [edx*8 + 0x447b9f]
cmp eax, 0xffff
jne 0x408de3
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [0x447b91]
je 0x408dd8
mov dx, word [0x447b97]
mov word [ebp - 0x23c], dx
jmp 0x408de1
mov word [ebp - 0x23c], 0xffff
jmp 0x408dfa
mov eax, dword [ebp - 0x24]
and eax, 0xffff
mov cx, word [eax*8 + 0x447b9f]
mov word [ebp - 0x23c], cx
mov edx, dword [ebp - 0x23c]
and edx, 0xffff
cmp edx, 0xffff
je 0x408e27
mov ax, word [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
push 2
call fcn.00409371
add esp, 0xc
jmp 0x408c76
mov edx, dword [0x437d0c]
push edx
push 0
push str.NodeStyleCount
push 0x42c7dc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 0x128], al
mov byte [ebp - 0x20], 0
jmp 0x408e59
mov al, byte [ebp - 0x20]
add al, 1
mov byte [ebp - 0x20], al
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov edx, dword [ebp - 0x128]
and edx, 0xff
cmp ecx, edx
jge 0x40936d
push 0x100
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.0041b260
add esp, 0xc
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
push ecx
push 0x42c7e4
lea edx, [ebp - 0x228]
push edx
call fcn.0041b1f9
add esp, 0xc
mov eax, dword [0x437d0c]
push eax
push 0
lea ecx, [ebp - 0x228]
push ecx
push 0x42c7f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 8], ax
mov word [ebp - 0x14], 1
jmp 0x408edc
mov dx, word [ebp - 0x14]
add dx, 1
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x14]
and eax, 0xffff
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp eax, ecx
jg 0x409368
push 0x100
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.0041b260
add esp, 0xc
mov eax, dword [ebp - 0x14]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
push ecx
push 0x42c7fc
lea edx, [ebp - 0x228]
push edx
call fcn.0041b1f9
add esp, 0x10
mov eax, dword [0x437d0c]
push eax
push 0
push 0x42c80c
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 0x234], ax
mov edx, dword [ebp - 0x234]
and edx, 0xffff
cmp edx, 1
jl 0x408f76
mov eax, dword [ebp - 0x234]
and eax, 0xffff
cmp eax, 0x1f4
jle 0x408fca
mov ecx, dword [ebp - 0x234]
and ecx, 0xffff
cmp ecx, 0x3e9
jl 0x408f9e
mov edx, dword [ebp - 0x234]
and edx, 0xffff
cmp edx, 0x7530
jle 0x408fca
mov eax, dword [ebp - 0x234]
and eax, 0xffff
push eax
push str.Error_node_config_:__d
push 0x6f
push 0x42c830
mov ecx, dword [0x437d14]
push ecx
call fcn.0040c291
add esp, 0x14
jmp 0x408ed0
xor edx, edx
mov dx, word [0x447b80]
mov eax, dword [ebp - 0x234]
and eax, 0xffff
cmp edx, eax
jge 0x408fe7
jmp 0x408ed0
mov ecx, dword [0x437d0c]
push ecx
push 0
push 0x42c83c
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 1
jl 0x409023
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
cmp ecx, 0xfe
jle 0x40904c
mov edx, dword [ebp - 0xc]
and edx, 0xff
push edx
push str.Error_officecode_config_:__d
push 0x7b
push str.com_main.c
mov eax, dword [0x437d14]
push eax
call fcn.0040c291
add esp, 0x14
jmp 0x408ed0
xor ecx, ecx
mov cx, word [0x447b80]
mov edx, dword [ebp - 0x234]
and edx, 0xffff
cmp ecx, edx
jne 0x40907e
xor eax, eax
mov al, byte [0x447b82]
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
cmp eax, ecx
jne 0x40907e
jmp 0x408ed0
push 0x100
push 0
lea edx, [ebp - 0x124]
push edx
call fcn.0041b260
add esp, 0xc
mov eax, dword [0x437d0c]
push eax
push 0x100
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0x42c874
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4090c8
jmp 0x408ed0
lea eax, [ebp - 0x124]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4090e2
jmp 0x408ed0
push 0x100
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041b260
add esp, 0xc
mov edx, dword [0x437d0c]
push edx
push 0x100
lea eax, [ebp - 0x124]
push eax
push 0
push str.SlaveIP
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409134
mov dword [ebp - 0x230], 0xffffffff
jmp 0x409146
lea edx, [ebp - 0x124]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x230], eax
mov eax, dword [0x437d0c]
push eax
push 0
push str.ConnectType
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 0x18], al
mov edx, dword [ebp - 0x18]
and edx, 0xff
test edx, edx
jne 0x4091bd
mov eax, dword [ebp - 0x234]
and eax, 0xffff
cmp eax, 1
jl 0x4091b7
mov ecx, dword [ebp - 0x234]
and ecx, 0xffff
cmp ecx, 0x1f4
jg 0x4091b7
xor edx, edx
mov dx, word [0x447b80]
cmp edx, 1
jl 0x4091b7
xor eax, eax
mov ax, word [0x447b80]
cmp eax, 0x1f4
jg 0x4091b7
mov byte [ebp - 0x18], 3
jmp 0x4091bb
mov byte [ebp - 0x18], 5
jmp 0x4091de
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
cmp ecx, 3
je 0x4091de
mov edx, dword [ebp - 0x18]
and edx, 0xff
cmp edx, 5
je 0x4091de
jmp 0x408ed0
mov eax, dword [ebp - 0x18]
and eax, 0xff
cmp eax, 3
jne 0x409218
mov ecx, dword [0x437d0c]
push ecx
push 0x2382
push 0x42c88c
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 0x22c], ax
mov word [ebp - 0x10], 0
jmp 0x409276
mov eax, dword [0x437d0c]
push eax
push 0x26ac
push str.PeerPort
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 0x22c], ax
xor edx, edx
mov dl, byte [0x447cfe]
test edx, edx
jne 0x40926b
mov eax, dword [0x437d0c]
push eax
push 0x2331
push str.LocalPort
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 0x10], ax
jmp 0x409276
mov dx, word [0x447cff]
mov word [ebp - 0x10], dx
push 0x100
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0041b260
add esp, 0xc
mov ecx, dword [0x437d0c]
push ecx
push 0x100
lea edx, [ebp - 0x124]
push edx
push 0x443e64
push 0x42c8b0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041b2c0
add esp, 4
test eax, eax
jne 0x4092e4
lea edx, [ebp - 0x228]
push edx
push str.__s_
lea eax, [ebp - 0x124]
push eax
call fcn.0041b1f9
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
mov dx, word [ebp - 0x10]
push edx
push 0
mov ax, word [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov dl, byte [ebp - 0xc]
push edx
mov ax, word [ebp - 0x234]
push eax
mov cl, byte [ebp - 0x18]
push ecx
call fcn.00409643
add esp, 0x24
cmp dword [ebp - 0x230], 0xffffffff
je 0x409363
mov edx, dword [ebp - 0x230]
cmp edx, dword [ebp - 4]
je 0x409363
lea eax, [ebp - 0x124]
push eax
mov cx, word [ebp - 0x10]
push ecx
push 0
mov dx, word [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x230]
push eax
push 1
mov cl, byte [ebp - 0xc]
push ecx
mov dx, word [ebp - 0x234]
push edx
mov al, byte [ebp - 0x18]
push eax
call fcn.00409643
add esp, 0x24
jmp 0x408ed0
jmp 0x408e51
mov esp, ebp
pop ebp
ret