Function at 0x46e311
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov edi, 0x200
mov esi, 0x685d50
cmovne edi, dword [ebp + 0xc]
cmovne esi, eax
test edi, edi
mov eax, closesocket
cmovs edi, eax
mov eax, dword [ebp + 0x20]
sub eax, 1
je 0x46e4e0
sub eax, 1
je 0x46e447
sub eax, 1
jne 0x46e4e0
push 3
call fcn.0046e5da
push eax
push str.DRIVER_s_
push edi
push esi
call fcn.004a0ddb
push dword [ebp + 0x10]
push str.HOST_s_
push edi
push esi
call fcn.004a0d90
push dword [ebp + 0x10]
push str.SERVERtms_server_
push edi
push esi
call fcn.004a0d90
push str.SERVICE1525_
push edi
push esi
call fcn.004a0d90
add esp, 0x40
push str.PROTOCOLontlitcp_
push edi
push esi
call fcn.004a0d90
push dword [ebp + 0x14]
call fcn.0049f486
add esp, 0x10
test eax, eax
jne 0x46e3c2
push dword [ebp + 0x14]
push str.DATABASE_s_
push edi
push esi
call fcn.004a0d90
add esp, 0x10
push dword [ebp + 0x18]
call fcn.0049f486
pop ecx
test eax, eax
jne 0x46e3e1
push dword [ebp + 0x18]
push str.UID_s_
push edi
push esi
call fcn.004a0d90
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x46e403
push dword [ebp + 0x1c]
push 0
push str.zt_1BX0
call fcn.004a0bb6
pop ecx
pop ecx
push eax
push edi
push esi
call fcn.004a0d90
add esp, 0x10
push ebx
mov ebx, str.informix_
push ebx
push 0
call fcn.0047cdb0
push eax
push str.TDLL_sbinigo4n304.dll_
push edi
push esi
call fcn.004a0d90
push str.TRANSLATIONOPTION0_
push edi
push esi
call fcn.004a0d90
push ebx
push 0
call fcn.0047cdb0
add esp, 0x2c
push eax
push str.INFORMIXDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop ebx
jmp 0x46e561
push 2
call fcn.0046e5da
push eax
push str.Driver_s_
push edi
push esi
call fcn.004a0ddb
push dword [ebp + 0x18]
call fcn.0049f486
add esp, 0x18
test eax, eax
jne 0x46e47c
push dword [ebp + 0x18]
push str.UID_s_
push edi
push esi
call fcn.004a0d90
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x46e49e
push dword [ebp + 0x1c]
push 0
push str.zt_1BX0
call fcn.004a0bb6
pop ecx
pop ecx
push eax
push edi
push esi
call fcn.004a0d90
add esp, 0x10
push dword [ebp + 0x14]
call fcn.0049f486
pop ecx
test eax, eax
jne 0x46e4bd
push dword [ebp + 0x14]
push str.DBN_s_
push edi
push esi
call fcn.004a0d90
add esp, 0x10
push str.ENGdefault_
push edi
push esi
call fcn.004a0d90
push dword [ebp + 0x10]
push str.Linkstcpip_HOST_s_PORT2638_verifyno_dobroadcastnone__
push edi
push esi
call fcn.004a0d90
add esp, 0x1c
jmp 0x46e561
push dword [ebp + 0x10]
push dword [ebp + 0x20]
call fcn.0046e5da
pop ecx
push eax
push str.DRIVER_s_SERVER_s_OPTION3_
push edi
push esi
call fcn.004a0ddb
push dword [ebp + 0x14]
call fcn.0049f486
add esp, 0x18
test eax, eax
jne 0x46e51a
push dword [ebp + 0x14]
push str.DATABASE_s_
push edi
push esi
call fcn.004a0d90
add esp, 0x10
push dword [ebp + 0x18]
call fcn.0049f486
pop ecx
test eax, eax
jne 0x46e539
push dword [ebp + 0x18]
push str.USER_s_
push edi
push esi
call fcn.004a0d90
add esp, 0x10
push dword [ebp + 0x1c]
call fcn.0049f486
pop ecx
test eax, eax
jne 0x46e561
push dword [ebp + 0x1c]
push eax
push str.t0uzu_r__RS
call fcn.004a0bb6
pop ecx
pop ecx
push eax
push edi
push esi
call fcn.004a0d90
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
ret