Function at 0x4c2970
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a37f
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov ecx, dword [0x57d0f8]
mov eax, dword [ecx]
call dword [eax + 0x180]
mov esi, eax
test esi, esi
je 0x4c29c5
cmp byte [esi + 0x18], 0
je 0x4c29c5
mov edi, dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4c29e0
mov eax, dword [ebx]
push 0
push str.The_connection_to_server_must_be_alive_to_import_skills_definition.
mov ecx, ebx
call dword [eax + 0x108]
mov edi, dword [sym.imp.USER32.dll_MessageBeep]
push 0x10
call edi
lea ecx, [ebp - 0x170]
call fcn.004de130
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0
mov dword [ebp - method.ImportSQLEditor.virtual_0], vtable.ImportSQLEditor.0
call fcn.004d2cf0
mov dword [ebp - 0xc0], vtable.Button.0
mov dword [ebp - 0xc4], str.PS_GameDefs.dbo.Skills
mov byte [ebp - 0xb4], 0
push dword [ebx + 0x14]
lea ecx, [ebp - 0x170]
mov dword [ebp - 4], 1
call fcn.004b62d0
test al, al
je 0x4c2d11
lea ecx, [ebp - 0x170]
call fcn.004de8b0
cmp eax, 6
jne 0x4c2d11
mov al, byte [ebp - 0xb4]
push dword [ebx + 0x14]
mov byte [ebp - 0x11], al
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi]
push str.SELECT_Count___Max_SkillLevel__FROM_PS_GameDefs.dbo.Skills_WHERE_SkillLevel___100
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4c2ed5
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x4c2ed5
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4c2ebb
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x4c2ebb
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x1c]
cmp eax, 3
jne 0x4c2adf
mov edi, 0x400
jmp 0x4c2af9
cmp eax, 9
jne 0x4c2aeb
mov edi, 0x500
jmp 0x4c2af9
cmp eax, 0xf
jne 0x4c2ebb
mov edi, 0x600
push dword [ebp - 0x38]
mov eax, dword [ebx]
push 0
mov ecx, ebx
mov dword [ebp - 0x1c], edi
call dword [eax + 0x10c]
mov eax, dword [esi]
push str.SELECT__FROM__PS_GameDefs_._dbo_._Skills__WHERE_SkillLevel___100_ORDER_BY_SkillID_SkillLevel
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x24]
xor eax, eax
xor esi, esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
cmp ecx, edx
jge 0x4c2ea3
mov eax, dword [ebx]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x10c]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4c2e8e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x4c2e8e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4c2b82
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push str.SkillID
mov ecx, eax
call dword [edx + 0x18]
mov ecx, dword [ebp - 0x20]
mov edi, eax
jmp 0x4c2b84
xor edi, edi
cmp dword [ebp - 0x34], edi
je 0x4c2b8e
mov dword [ebp - 0x34], edi
xor esi, esi
test ecx, ecx
je 0x4c2bbf
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push str.SkillLevel
mov ecx, eax
call dword [edx + 0x18]
mov ecx, dword [ebp - 0x20]
mov ebx, eax
test ecx, ecx
je 0x4c2bc1
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [eax]
push str.SkillName
mov ecx, eax
call dword [edx + 0x10]
jmp 0x4c2bc3
xor ebx, ebx
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x8c]
call fcn.00417cd0
mov byte [ebp - 4], 5
cmp ebx, 1
jne 0x4c2c4d
mov ecx, dword [ebp - 0x18]
push edi
mov ecx, dword [ecx + 0xa8]
call fcn.0042e9f0
mov esi, eax
test esi, esi
jne 0x4c2c2f
push 0xe3c
call fcn.004efd54
mov ecx, eax
add esp, 4
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4c2c1a
push ebx
push dword [ebp - 0x1c]
lea eax, [edi - 1]
push eax
call fcn.004512a0
mov esi, eax
jmp 0x4c2c1c
xor esi, esi
mov eax, dword [ebp - 0x18]
push esi
mov ecx, dword [eax + 0xa8]
mov byte [ebp - 4], 5
mov eax, dword [ecx]
call dword [eax + 0x20]
lea eax, [ebp - 0x8c]
push eax
mov ecx, esi
call fcn.00452f50
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x34]
jmp 0x4c2d42
lea eax, [ebx - 1]
cmp eax, 0xe
ja 0x4c2d8b
test esi, esi
jne 0x4c2d3f
push 0xffffffffffffffff
push str.The_PS_GameDefs.dbo.Skills_contains_invalid_data.
lea ecx, [ebp - 0xb0]
call fcn.00417cd0
lea eax, [ebp - 0xb0]
push str._nWhen_performing:_n
push eax
mov byte [ebp - 4], 8
call fcn.004013c0
add esp, 8
mov ecx, str.SELECT__FROM__PS_GameDefs_._dbo_._Skills__WHERE_SkillLevel___100_ORDER_BY_SkillID_SkillLevel
push ecx
push eax
call fcn.004013c0
add esp, 8
lea eax, [ebp - 0xb0]
push str._nNo_record_with_SkillLevel1_was_found_for_SkillID
push eax
call fcn.004013c0
add esp, 8
push edi
push eax
call fcn.00418370
mov eax, dword [ebp - 0x18]
add esp, 8
push 0x10
push str.Error
push dword [ebp - 0xac]
push dword [eax + 0x14]
call fcn.004dc620
add esp, 0x10
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.00417dd0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00417dd0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040e860
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040e860
lea ecx, [ebp - 0x170]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xc0], vtable.Control32.0
call fcn.004de220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
imul ebx, ebx, 0xec
cmp byte [ebp - 0x11], 0
je 0x4c2d62
lea eax, [ebp - 0x8c]
lea ecx, [esi - 0x84]
push eax
add ecx, ebx
call fcn.00417e10
lea eax, [ebp - 0x24]
lea ecx, [esi - 0x3c]
push eax
add ecx, ebx
call fcn.0043a8e0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00417dd0
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
inc ecx
jmp 0x4c2b28
push 0xffffffffffffffff
push str.The_PS_GameDefs.dbo.Skills_contains_invalid_data.
lea ecx, [ebp - 0x68]
call fcn.00417cd0
cmp dword [0x57604c], 0x545fd8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
jne 0x4c2db4
call fcn.00419670
jmp 0x4c2dc2
push 0
push 0xffffffffffffffff
push str._nWhen_performing:_n
call fcn.00418a80
mov ecx, str.SELECT__FROM__PS_GameDefs_._dbo_._Skills__WHERE_SkillLevel___100_ORDER_BY_SkillID_SkillLevel
cmp ecx, dword [0x57604c]
jne 0x4c2dd8
mov ecx, eax
call fcn.00419670
jmp 0x4c2de4
push 0
push 0xffffffffffffffff
push ecx
mov ecx, eax
call fcn.00418a80
cmp dword [0x57604c], str._nThe_row
mov ecx, eax
jne 0x4c2df9
call fcn.00419670
jmp 0x4c2e07
push 0
push 0xffffffffffffffff
push str._nThe_row
call fcn.00418a80
mov ecx, eax
mov eax, dword [ebp - 0x28]
inc eax
push eax
push ecx
call fcn.00418370
add esp, 8
cmp dword [0x57604c], 0x545fb8
mov ecx, eax
jne 0x4c2e2c
call fcn.00419670
jmp 0x4c2e3a
push 0
push 0xffffffffffffffff
push str._has_SkillLevel
call fcn.00418a80
mov ecx, str.__15
cmp ebx, 1
mov eax, 0x545fec
cmovge eax, ecx
lea ecx, [ebp - 0x68]
cmp eax, dword [0x57604c]
jne 0x4c2e5c
call fcn.00419670
jmp 0x4c2e66
push 0
push 0xffffffffffffffff
push eax
call fcn.00418a80
mov eax, dword [ebp - 0x18]
push 0x10
push str.Error
push dword [ebp - 0x64]
push dword [eax + 0x14]
call fcn.004dc620
add esp, 0x10
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [ebp - 0x68]
jmp 0x4c2ce1
push 0x562bf0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0
call fcn.004eff77
mov eax, dword [ebx + 0xa8]
mov ecx, ebx
mov dword [eax + 0x20], edi
mov eax, dword [ebx]
call dword [eax + 0x198]
jmp 0x4c2cf9
mov eax, dword [ebx]
push 0
push str.The_number_of_levels_per_skill_cannot_be_obtained_from_database.
mov ecx, ebx
call dword [eax + 0x108]
push 0x10
call edi
jmp 0x4c2d05
push 0x562bf0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0
call fcn.004eff77
mov ecx, dword [ebp - 0x18]
push 0
mov eax, dword [ecx]
push str.The_SQL_request_failed_to_execute.
call dword [eax + 0x108]
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 0x4c2d11
ret