Function at 0x4073f0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [0x4204c4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x25c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0xc], 1
call fcn.0040ab40
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x274], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
je 0x407495
cmp ebx, ecx
je 0x4076f6
jmp 0x40749d
cmp ebx, ecx
jne 0x407700
cmp dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
je 0x4074b1
cmp eax, ecx
je 0x4076f6
jmp 0x4074b9
cmp eax, ecx
jne 0x4076f6
cmp dword [esp + 0x24], ecx
je 0x4074c9
cmp esi, ecx
je 0x4076f6
jmp 0x4074d1
cmp esi, ecx
jne 0x4076f6
cmp dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
je 0x4074e5
cmp eax, ecx
je 0x4076f6
jmp 0x4074ed
cmp eax, ecx
jne 0x4076f6
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
push str.Setup
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00403380
add esp, 0xc
lea edx, [esp + 0x58]
push edx
push 0x80000002
lea ecx, [esp + 0x48]
call fcn.0040af10
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, al
test eax, eax
je 0x407653
test ebx, ebx
je 0x407590
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push ecx
push 0x4177f8
push str.SourcePath
lea ecx, [esp + 0x50]
call fcn.0040aca0
mov esi, eax
test esi, esi
je 0x407584
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
push ebx
call fcn.0040debb
push esi
call fcn.0040cf85
add esp, 0x10
push esi
push 8
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
jmp 0x40758c
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4075eb
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 0
push edx
push 0x4177f8
push str.SQLDataRoot
lea ecx, [esp + 0x50]
call fcn.0040aca0
mov esi, eax
test esi, esi
je 0x4075e3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
push ecx
push esi
push edx
call fcn.0040debb
push esi
call fcn.0040cf85
add esp, 0x10
push esi
push 8
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
jmp 0x4075eb
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40764a
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
push ecx
push 0x4177f8
push str.SQLPath
lea ecx, [esp + 0x50]
call fcn.0040aca0
mov esi, eax
test esi, esi
je 0x407642
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x20]
push eax
push esi
push ecx
call fcn.0040debb
push esi
call fcn.0040cf85
add esp, 0x10
push esi
push 8
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
jmp 0x40764a
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x40]
call fcn.0040ab60
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4076f0
mov edx, dword [esp + 0x30]
push str.ClientSetup
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00407390
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
push 0x80000002
lea ecx, [esp + 0x48]
call fcn.0040af10
movzx eax, al
test eax, eax
je 0x4076f0
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push 0
push eax
push 0x4177f8
push str.SQLPath
lea ecx, [esp + 0x50]
call fcn.0040aca0
mov esi, eax
test esi, esi
je 0x4076df
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
push edx
push esi
push eax
call fcn.0040debb
push esi
call fcn.0040cf85
add esp, 0x10
push esi
push 8
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
jmp 0x4076e7
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x40]
call fcn.0040ab60
mov edi, dword [esp + 0x10]
xor ecx, ecx
cmp edi, ecx
je 0x407700
mov edx, dword [esp + 0x3c]
mov dword [edi], edx
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x40770e
mov edx, dword [esp + 0x38]
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
cmp eax, ecx
je 0x40771c
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
cmp eax, ecx
je 0x40772a
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x274], 0xffffffff
call fcn.0040aed0
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0xc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x264]
call fcn.0040d00b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24