Function at 0x4c61a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x4c61b8
mov dword [ebp + 8], 0x818518
mov dword [ebp + 0xc], 0x200
cmp dword [ebp + 0xc], 0
jge 0x4c61c5
mov dword [ebp + 0xc], closesocket
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x4c6334
cmp dword [ebp - 4], 3
je 0x4c61e0
jmp 0x4c6405
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.004c67c0
add esp, 4
push eax
push str.DRIVER_s_
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402dc9
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push str.HOST_s_
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040146a
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push str.SERVERtms_server_
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040146a
add esp, 0x10
push str.SERVICE1525_
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0xc
push str.PROTOCOLontlitcp_
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040146a
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4c6287
mov eax, dword [ebp + 0x14]
push eax
push 0x6a2cec
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0x10
mov eax, dword [ebp + 0x18]
push eax
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4c62b0
mov ecx, dword [ebp + 0x18]
push ecx
push 0x6a2cfc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040146a
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x4c62da
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
push 0x6a2d04
call fcn.00401a9b
add esp, 8
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040146a
add esp, 0x10
push 0x6a2d0c
push 0
call fcn.004022b6
add esp, 8
push eax
push str.TDLL_sbinigo4n304.dll_
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0x10
push str.TRANSLATIONOPTION0_
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040146a
add esp, 0xc
push 0x6a2d4c
push 0
call fcn.004022b6
add esp, 8
push eax
push str.INFORMIXDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4c64b1
mov edx, dword [ebp + 0x20]
push edx
call fcn.004c67c0
add esp, 4
push eax
push str.Driver_s_
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402dc9
add esp, 0x10
mov edx, dword [ebp + 0x18]
push edx
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4c637f
mov eax, dword [ebp + 0x18]
push eax
push str.UID_s_
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x4c63a9
mov eax, dword [ebp + 0x1c]
push eax
push 0
push str.zt_1BX0
call fcn.00401a9b
add esp, 8
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0x10
mov eax, dword [ebp + 0x14]
push eax
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4c63d2
mov ecx, dword [ebp + 0x14]
push ecx
push str.DBN_s_
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040146a
add esp, 0x10
push str.ENGdefault_
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
push str.Linkstcpip_HOST_s_PORT2638_verifyno_dobroadcastnone__
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0x10
jmp 0x4c64b1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.004c67c0
add esp, 4
push eax
push str.DRIVER_s_SERVER_s_OPTION3_
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402dc9
add esp, 0x14
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4c6454
mov edx, dword [ebp + 0x14]
push edx
push str.DATABASE_s_
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040146a
add esp, 0x10
mov edx, dword [ebp + 0x18]
push edx
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4c647d
mov eax, dword [ebp + 0x18]
push eax
push str.USER_s_
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040146a
add esp, 0x10
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4c64b1
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
push str.t0uzu_r__RS
call fcn.00401a9b
add esp, 8
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040146a
add esp, 0x10
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret