Function at 0x45c482
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, 0x64a7d0
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 0x45c651
sub eax, 1
je 0x45c5b8
sub eax, 1
jne 0x45c651
push 3
call fcn.0045c74b
push eax
push str.DRIVER_s_
push edi
push esi
call fcn.0048d960
push dword [ebp + 0x10]
push str.HOST_s_
push edi
push esi
call fcn.0048d915
push dword [ebp + 0x10]
push str.SERVERtms_server_
push edi
push esi
call fcn.0048d915
push str.SERVICE1525_
push edi
push esi
call fcn.0048d915
add esp, 0x40
push str.PROTOCOLontlitcp_
push edi
push esi
call fcn.0048d915
push dword [ebp + 0x14]
call fcn.0048c30a
add esp, 0x10
test eax, eax
jne 0x45c533
push dword [ebp + 0x14]
push str.DATABASE_s_
push edi
push esi
call fcn.0048d915
add esp, 0x10
push dword [ebp + 0x18]
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x45c552
push dword [ebp + 0x18]
push str.UID_s_
push edi
push esi
call fcn.0048d915
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x45c574
push dword [ebp + 0x1c]
push 0
push str.zt_1BX0
call fcn.0048d73b
pop ecx
pop ecx
push eax
push edi
push esi
call fcn.0048d915
add esp, 0x10
push ebx
mov ebx, str.informix_
push ebx
push 0
call fcn.0046a855
push eax
push str.TDLL_sbinigo4n304.dll_
push edi
push esi
call fcn.0048d915
push str.TRANSLATIONOPTION0_
push edi
push esi
call fcn.0048d915
push ebx
push 0
call fcn.0046a855
add esp, 0x2c
push eax
push str.INFORMIXDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop ebx
jmp 0x45c6d2
push 2
call fcn.0045c74b
push eax
push str.Driver_s_
push edi
push esi
call fcn.0048d960
push dword [ebp + 0x18]
call fcn.0048c30a
add esp, 0x18
test eax, eax
jne 0x45c5ed
push dword [ebp + 0x18]
push str.UID_s_
push edi
push esi
call fcn.0048d915
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x45c60f
push dword [ebp + 0x1c]
push 0
push str.zt_1BX0
call fcn.0048d73b
pop ecx
pop ecx
push eax
push edi
push esi
call fcn.0048d915
add esp, 0x10
push dword [ebp + 0x14]
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x45c62e
push dword [ebp + 0x14]
push str.DBN_s_
push edi
push esi
call fcn.0048d915
add esp, 0x10
push str.ENGdefault_
push edi
push esi
call fcn.0048d915
push dword [ebp + 0x10]
push str.Linkstcpip_HOST_s_PORT2638_verifyno_dobroadcastnone__
push edi
push esi
call fcn.0048d915
add esp, 0x1c
jmp 0x45c6d2
push dword [ebp + 0x10]
push dword [ebp + 0x20]
call fcn.0045c74b
pop ecx
push eax
push str.DRIVER_s_SERVER_s_OPTION3_
push edi
push esi
call fcn.0048d960
push dword [ebp + 0x14]
call fcn.0048c30a
add esp, 0x18
test eax, eax
jne 0x45c68b
push dword [ebp + 0x14]
push str.DATABASE_s_
push edi
push esi
call fcn.0048d915
add esp, 0x10
push dword [ebp + 0x18]
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x45c6aa
push dword [ebp + 0x18]
push str.USER_s_
push edi
push esi
call fcn.0048d915
add esp, 0x10
push dword [ebp + 0x1c]
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x45c6d2
push dword [ebp + 0x1c]
push eax
push str.t0uzu_r__RS
call fcn.0048d73b
pop ecx
pop ecx
push eax
push edi
push esi
call fcn.0048d915
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
ret