Function at 0x4507d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x100
mov eax, dword [0x6286d0]
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
mov dword [esp + 8], ebx
jne 0x45080e
mov eax, dword [esp + 0x10c]
push ebx
add eax, 0xc
push 0x417
push eax
call fcn.0043a8a0
add esp, 0xc
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret
mov al, byte [0x6273fc]
test al, al
je 0x45084e
mov eax, dword [esp + 0x110]
cmp eax, ebx
je 0x45084e
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.004d5a76
lea edx, [esp + 0xcc]
push edx
call fcn.004c5ee0
lea eax, [esp + 0xd0]
add esp, 0xc
mov dword [esp + 0x110], eax
mov ebp, dword [esp + 0x10c]
mov eax, str.user
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, 0x5e975c
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov eax, 0xa
mov dword [esp + 0xa4], eax
mov dword [esp + 0x50], eax
mov eax, str.mysql
mov dword [esp + 0x74], eax
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x7e8], ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x3c], ebx
je 0x4508de
cmp dword [0x6285a0], ebx
je 0x4508de
lea edx, [esp + 0x1c]
mov eax, 1
push edx
push ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0x70], eax
call fcn.00448a10
add esp, 8
test eax, eax
jne 0x4508de
pop ebp
pop ebx
add esp, 0x100
ret
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00458300
add esp, 8
test eax, eax
je 0x450906
push ebx
push ebp
call fcn.00456800
add esp, 8
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
cmp dword [esp + 0x11c], ebx
jne 0x45091c
push ebp
call fcn.0044f4d0
add esp, 4
mov dword [esp + 8], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x6269f0
call esi
mov ecx, dword [0x628608]
add ecx, 0x20
push ecx
call esi
mov ecx, dword [0x6286d4]
mov edx, dword [esp + 0x11c]
inc ecx
mov dword [0x6286d4], ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x20], eax
je 0x450a42
mov ebx, dword [esp + 0x120]
mov eax, dword [esi + 8]
test eax, eax
jne 0x45097a
mov dword [esi + 8], 0x5db118
mov dword [esi + 0xc], 1
cmp dword [esi + 0xc], 0x3c
ja 0x450a19
cmp dword [esi + 4], 0x10
ja 0x450a19
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x124]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x120]
xor edx, edx
test ecx, ecx
setne dl
dec edx
and edx, ebx
push edx
push esi
push eax
push ebp
call fcn.0044f570
add esp, 0x18
test eax, eax
jne 0x450a28
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x450a2b
mov eax, ebx
and eax, 0x33c3f
cmp eax, ebx
jne 0x4509f7
mov edx, dword [esp + 0x124]
push edx
push eax
mov eax, dword [esp + 0xa0]
push esi
push ecx
push eax
call fcn.00450a90
add esp, 0x14
test eax, eax
je 0x450a2b
jmp 0x450a28
push str.GLOBAL_PRIVILEGES
push str.DB_GRANT
lea ecx, [ebp + 0xc]
push 0x4c5
push ecx
call fcn.0043a9f0
add esp, 0x10
mov edi, 1
jmp 0x450a2b
push 0
push 0x479
call fcn.004c6390
add esp, 8
or edi, 0xffffffff
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov esi, dword [eax + 4]
test esi, esi
mov dword [esp + 0x20], eax
jne 0x450965
xor ebx, ebx
mov eax, dword [0x628608]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 0x20
push eax
call esi
push 0x6269f0
call esi
push ebx
push ebp
call fcn.00456800
add esp, 8
cmp edi, ebx
jne 0x450a78
push ebx
push ebx
push ebx
push ebx
add ebp, 0xc
push ebp
call fcn.0043ab60
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret