Function at 0x409d70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ebp + 0x24], 0
push ebx
push esi
push edi
jne 0x409f28
mov ecx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
push ecx
push 0x812f18
push 0x812f10
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [edx]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ecx]
sub edx, eax
push edx
call fcn.00408ba0
add dword [esi], eax
add esp, 0x1c
cmp dword [0x812f10], 0
jne 0x409dd5
push str.MYSQL_GROUP_SUFFIX
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [0x812f10], eax
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x409dfd
cmp byte [0x812f09], 0
jne 0x409dfd
mov edi, 0x812d08
call fcn.00408aa0
test eax, eax
jne 0x40a048
mov dword [0x812f14], edi
mov esi, dword [ebp - 8]
test esi, esi
je 0x409e25
cmp byte [0x812f09], 0
jne 0x409e25
mov edi, 0x812b08
call fcn.00408aa0
test eax, eax
jne 0x40a048
mov dword [0x812f0c], edi
mov eax, dword [0x812f10]
mov byte [0x812f09], 1
test eax, eax
je 0x40a019
cmp dword [ebp + 0x18], 0x408b20
jne 0x40a019
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e50
mov esi, dword [ebp + 0x1c]
mov edi, dword [esi + 8]
sub eax, edx
mov edx, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [eax*8 + 4]
push ecx
push edx
mov dword [ebp - 4], edi
call fcn.00414890
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x409e8d
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x409f13
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
mov edi, edi
mov edx, dword [edi + 8]
mov ecx, dword [edx + ebx*4]
mov dword [eax + ebx*4], ecx
mov eax, ecx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409eb0
mov ecx, dword [ebp + 0x1c]
sub eax, edx
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, esi
push eax
push edx
call fcn.00414890
mov edi, eax
add esp, 8
test edi, edi
je 0x409e81
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 8]
add ecx, ebx
mov dword [eax + ecx*4], edi
mov edx, dword [eax + ebx*4]
push esi
push edx
push edi
call fcn.0047322e
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x812f10]
push eax
push ecx
add edi, esi
push edi
call fcn.0047322e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc ebx
add esp, 0x18
mov edi, edx
cmp ebx, dword [edx]
jb 0x409ea0
mov esi, dword [ebp + 0x1c]
mov ecx, dword [edi]
add ecx, ecx
mov dword [edi], ecx
mov dword [edi + 8], eax
mov dword [eax + ecx*4], 0
jmp 0x40a01c
cmp dword [0x812f18], 0
je 0x40a019
cmp dword [ebp + 0x18], 0x408b20
jne 0x40a019
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + 8]
mov ecx, dword [esi]
mov eax, dword [eax]
lea edx, [ecx*4 + 0xc]
push edx
push eax
call fcn.00414890
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x409e81
xor edi, edi
cmp dword [esi], edi
jbe 0x409f7e
mov edi, edi
mov ecx, dword [esi + 8]
mov edx, dword [ecx + edi*4]
mov dword [eax + edi*4], edx
inc edi
cmp edi, dword [esi]
jb 0x409f70
mov ecx, dword [0x812f18]
mov dword [eax + edi*4], ecx
mov ecx, dword [0x812f10]
test ecx, ecx
je 0x40a00b
mov eax, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409f96
sub eax, edx
mov edx, eax
mov eax, dword [0x812f18]
mov dword [ebp - 4], edx
lea ebx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409fb0
sub eax, ebx
lea edx, [eax + edx + 1]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
push edx
push ecx
call fcn.00414890
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x409e81
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + edi*4 + 4], ebx
mov eax, dword [eax + edi*4]
push edx
push eax
push ebx
call fcn.0047322e
mov ecx, dword [ebp - 4]
mov edx, dword [0x812f10]
add ebx, dword [ebp - 0xc]
inc ecx
push ecx
push edx
push ebx
call fcn.0047322e
mov eax, dword [ebp - 8]
add esp, 0x18
inc dword [esi]
inc dword [esi]
mov ecx, dword [esi]
mov dword [esi + 8], eax
mov dword [eax + ecx*4], 0
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push edi
call fcn.00415a70
add esp, 4
test eax, eax
je 0x40a04f
mov ecx, dword [ebp + 0x18]
mov bl, byte [ebp + 0x24]
push 0
push esi
push ecx
call fcn.00409d10
add esp, 0xc
test eax, eax
js 0x40a120
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x812f0c]
test eax, eax
je 0x40a08c
mov edx, dword [ebp + 0x24]
push edx
push 0
push eax
mov eax, dword [ebp + 0x18]
push 0x4b8ae9
push 0x4b8ae9
push esi
push eax
call fcn.00409240
add esp, 0x1c
test eax, eax
js 0x40a120
jle 0x40a046
mov ecx, dword [0x812f0c]
push ecx
jmp 0x40a108
cmp byte [ebp + 0x28], 0
jne 0x40a046
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0
mov ebx, eax
mov dword [ebp - 0xc], eax
je 0x40a046
nop
mov eax, dword [ebx]
cmp byte [eax], 0
je 0x40a0c1
mov edx, dword [ebp + 0x18]
mov bl, byte [ebp + 0x24]
push eax
push esi
push edx
call fcn.00409d10
add esp, 0xc
test eax, eax
js 0x40a120
mov ebx, dword [ebp - 0xc]
jmp 0x40a0ee
mov eax, dword [0x812f14]
test eax, eax
je 0x40a0ee
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x18]
push ecx
push 0
push eax
push 0x4b8ae9
push 0x4b8ae9
push esi
push edx
call fcn.00409240
add esp, 0x1c
test eax, eax
js 0x40a120
jg 0x40a102
add ebx, 4
cmp dword [ebx], 0
mov dword [ebp - 0xc], ebx
jne 0x40a0a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x812f14]
push eax
push str.Could_not_open_required_defaults_file:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
push str.Fatal_error_in_defaults_handling._Program_aborted_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret