Function at 0x41f6f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xa10], edi
mov dword [ebp - 0xa0c], esi
mov dword [ebp - 0xa18], ebx
mov dword [ebp - 0xa14], eax
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x41f93a
mov eax, dword [0x815438]
test eax, eax
je 0x41f7c3
mov edx, dword [0x4d8ec4]
push 0x16c
push str.....mysql_5.6.40_sql_commonclient_plugin.c
push 0
push eax
mov eax, dword [edx + 0xbc]
lea ecx, [ebp - 0xa38]
push ecx
call eax
add esp, 0x14
push 0x815420
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x41f78f
mov ecx, dword [0x4d8ec4]
mov edx, dword [ecx + 0xc0]
push 0
push esi
call edx
add esp, 8
mov esi, dword [ebp - 0xa0c]
test ebx, ebx
js 0x41f7b0
mov eax, ebx
mov edi, esi
call fcn.0041f380
test eax, eax
jne 0x41f8e5
mov edi, dword [ebp - 0xa10]
mov eax, dword [edi + 0x37c]
test eax, eax
je 0x41f7d0
cmp dword [eax], 0
je 0x41f7d0
mov eax, dword [eax]
jmp 0x41f7e7
push 0x815420
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x41f795
push str.LIBMYSQL_PLUGIN_DIR
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
jne 0x41f7e7
mov eax, str.C:_Program_Files_MySQL_MySQL_Server_5.6_lib_plugin
push 0
push str..dll
push esi
push 0x4bcec4
push eax
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.00413d30
add esp, 0x1c
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x41f85a
push eax
push 0x800
lea edx, [ebp - 0xa08]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x41f850
lea esi, [ebp - 0xa08]
jmp 0x41f8ea
mov esi, 0x4b8ae9
jmp 0x41f8ea
mov eax, dword [0x4d8d2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x41f87b
push ebx
mov esi, str.not_a_plugin
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41f8ea
mov edi, dword [ebp - 0xa18]
test edi, edi
js 0x41f890
cmp edi, dword [esi]
je 0x41f890
mov esi, str.type_mismatch
jmp 0x41f8ea
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0xa0c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41f8c0
test dl, dl
je 0x41f8bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41f8c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41f8a0
xor eax, eax
jmp 0x41f8c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f8d0
mov esi, str.name_mismatch
jmp 0x41f8ea
test edi, edi
jns 0x41f94d
mov eax, dword [esi]
mov edi, dword [ebp - 0xa0c]
call fcn.0041f380
test eax, eax
je 0x41f94d
mov esi, str.it_is_already_loaded
mov eax, dword [0x815438]
test eax, eax
je 0x41f905
mov ecx, dword [0x4d8ec4]
mov edx, dword [ecx + 0xa4]
push eax
call edx
add esp, 4
push 0x815420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [str.Authentication_plugin__s_cannot_be_loaded:__s]
mov edx, dword [str.HY000]
push esi
push eax
mov eax, dword [ebp - 0xa10]
push ecx
push edx
push 0x80b
push eax
call fcn.00402af0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xa14]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xa10]
push esi
mov edi, ebx
call fcn.0041f530
add esp, 4
mov esi, 0x815420
mov edi, eax
call fcn.0041f310
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472ef6
mov esp, ebp
pop ebp
ret