Function at 0x46c191
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [esp], str.WINICONV_LIBICONV_DLL
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46c1c6
mov dword [ebp - 0x10], 0x6652aa
jmp 0x46c294
jmp 0x46c294
mov dword [esp + 4], 0x2c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x46c1ee
jmp 0x46c27c
cmp dword [ebp - 0x14], 0
jne 0x46c207
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub edx, eax
mov eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0046c12b
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46c233
mov eax, 0
jmp 0x46c426
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.006324d0
cmp dword [ebp - 0xc], 0
je 0x46c27c
mov eax, dword [0x6ea640]
cmp dword [ebp - 0xc], eax
jne 0x46c27a
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov dword [ebp - 0xc], 0
jmp 0x46c27c
jmp 0x46c2a2
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
cmp al, 0x2c
jne 0x46c28e
mov eax, dword [ebp - 0x14]
add eax, 1
jmp 0x46c291
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test al, al
jne 0x46c1cb
cmp dword [ebp - 0xc], 0
jne 0x46c2ad
jmp 0x46c40b
mov dword [esp + 4], str._errno
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0046c48a
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x46c2ce
jmp 0x46c40b
mov dword [esp + 4], str.libiconv_open
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46c30a
mov dword [esp + 4], str.iconv_open
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp + 4], str.libiconv_close
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x46c350
mov dword [esp + 4], str.iconv_close
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [esp + 4], str.libiconv
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
jne 0x46c396
mov dword [esp + 4], str.iconv
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [esp + 4], str._errno
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x46c40b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x46c40b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x46c40b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x46c40b
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x46c3fb
jmp 0x46c40b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x50], edx
mov eax, 1
jmp 0x46c426
cmp dword [ebp - 0xc], 0
je 0x46c421
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
leave
ret