Function at 0x46d950
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0x20]
push ebx
push esi
push edi
mov ebx, 0x200
mov edi, 0x66c4a8
cmovne ebx, dword [ebp + 0xc]
cmovne edi, eax
test ebx, ebx
mov eax, closesocket
cmovs ebx, eax
mov eax, ecx
sub eax, 1
je 0x46db26
sub eax, 1
je 0x46da8b
sub eax, 1
jne 0x46db26
push 3
call fcn.0046dc10
push eax
push str.DRIVER_s_
push ebx
push edi
call fcn.004a94b0
mov esi, dword [ebp + 0x10]
push esi
push str.HOST_s_
push ebx
push edi
call fcn.004a9450
push esi
push str.SERVERtms_server_
push ebx
push edi
call fcn.004a9450
push str.SERVICE1525_
push ebx
push edi
call fcn.004a9450
add esp, 0x40
push str.PROTOCOLontlitcp_
push ebx
push edi
call fcn.004a9450
mov esi, dword [ebp + 0x14]
push esi
call fcn.004a73a0
add esp, 0x10
test eax, eax
jne 0x46da02
push esi
push str.DATABASE_s_
push ebx
push edi
call fcn.004a9450
add esp, 0x10
mov esi, dword [ebp + 0x18]
push esi
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x46da22
push esi
push str.UID_s_
push ebx
push edi
call fcn.004a9450
add esp, 0x10
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x46da44
push eax
push 0
push str.zt_1BX0
call fcn.004a91f0
add esp, 8
push eax
push ebx
push edi
call fcn.004a9450
add esp, 0x10
push str.informix_
push 0
call fcn.0047d960
push eax
push str.TDLL_sbinigo4n304.dll_
push ebx
push edi
call fcn.004a9450
push str.TRANSLATIONOPTION0_
push ebx
push edi
call fcn.004a9450
push str.informix_
push 0
call fcn.0047d960
add esp, 0x2c
push eax
push str.INFORMIXDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push 2
call fcn.0046dc10
push eax
push str.Driver_s_
push ebx
push edi
call fcn.004a94b0
mov esi, dword [ebp + 0x18]
push esi
call fcn.004a73a0
add esp, 0x18
test eax, eax
jne 0x46dabf
push esi
push str.UID_s_
push ebx
push edi
call fcn.004a9450
add esp, 0x10
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x46dae1
push eax
push 0
push str.zt_1BX0
call fcn.004a91f0
add esp, 8
push eax
push ebx
push edi
call fcn.004a9450
add esp, 0x10
mov esi, dword [ebp + 0x14]
push esi
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x46db01
push esi
push str.DBN_s_
push ebx
push edi
call fcn.004a9450
add esp, 0x10
push str.ENGdefault_
push ebx
push edi
call fcn.004a9450
push dword [ebp + 0x10]
push str.Linkstcpip_HOST_s_PORT2638_verifyno_dobroadcastnone__
push ebx
push edi
call fcn.004a9450
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 0x10]
push ecx
call fcn.0046dc10
add esp, 4
push eax
push str.DRIVER_s_SERVER_s_OPTION3_
push ebx
push edi
call fcn.004a94b0
mov esi, dword [ebp + 0x14]
push esi
call fcn.004a73a0
add esp, 0x18
test eax, eax
jne 0x46db5f
push esi
push str.DATABASE_s_
push ebx
push edi
call fcn.004a9450
add esp, 0x10
mov esi, dword [ebp + 0x18]
push esi
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x46db7f
push esi
push str.USER_s_
push ebx
push edi
call fcn.004a9450
add esp, 0x10
mov esi, dword [ebp + 0x1c]
push esi
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x46dba9
push esi
push eax
push str.t0uzu_r__RS
call fcn.004a91f0
add esp, 8
push eax
push ebx
push edi
call fcn.004a9450
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret