Function at 0x10002c30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037e87
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x1a
push str.CREATE_GENERATOR_MAIN_GEN
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002ca6
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x74
push str.CREATE_PROCEDURE_GEN_NEW_ID_RETURNS______NEW_ID_INTEGER_AS__nBEGIN__n___NEW_ID__GEN_ID_MAIN_GEN_1____n___SUSPEND___nEND
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002ced
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x30
push str.GRANT_EXECUTE_ON_PROCEDURE_GEN_NEW_ID_TO_SYSDBA_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002d34
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x25c
push str.CREATE_PROCEDURE_GET_DATA_HDD_______FOLDERID_INTEGER__RETURNS_______HDDFOLDERID_INTEGER__AS_DECLARE_VARIABLE_FOLDERTYPE_SMALLINT___nDECLARE_VARIABLE_PARENTID_INTEGER___nbegin__n___parentid__1___n___while__:parentid___0__do__n___begin__n______SELECT_foldertype_parentid__n______FROM__n_________Folders__n______WHERE__n_________Id__:folderid__n______INTO__n_________:foldertype___n_________:parentid___n______if__:foldertype3___n______then_begin__n_________hddfolderid__:folderid___n_________suspend___n_________exit___n______end__n______else__n_________folderid__:parentid___n___end__n___hddfolderid___1___n___suspend___nend
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 4
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002d7e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x32
push str.GRANT_SELECT_ON_FOLDERS_TO_PROCEDURE_GET_DATA_HDD_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 5
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002dc5
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x32
push str.GRANT_EXECUTE_ON_PROCEDURE_GET_DATA_HDD_TO_SYSDBA_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002e0c
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x1fe
push str._CREATE_PROCEDURE_GET_FOLDER_LEVEL________FOLDERID_INTEGER___RETURNS________FOLDERLEVEL_SMALLINT___AS__DECLARE_VARIABLE_PARENTID_INTEGER___n_begin__n____select_parentid__n____from__n_______folders__n____where__n_______id__:folderid__n____into__n_______:parentid___n____if__:parentid_0___n____then_begin__n_______execute_procedure_GET_FOLDER_LEVEL__n__________:parentid__n_______RETURNING_VALUES__n__________:FOLDERLEVEL___n_______FOLDERLEVEL__:FOLDERLEVEL1___n____end__n____else__n_______FOLDERLEVEL__1___n____suspend___n_end
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 7
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002e56
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x4c
push str._GRANT_EXECUTE_ON_PROCEDURE_GET_FOLDER_LEVEL_TO_PROCEDURE_GET_FOLDER_LEVEL_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 8
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002e9d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x38
push str._GRANT_EXECUTE_ON_PROCEDURE_GET_FOLDER_LEVEL_TO_SYSDBA_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 9
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002ee4
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x1fb
push str._CREATE_PROCEDURE_GET_FOLDER_PATH________AFOLDERID_INTEGER___RETURNS________PATH_VARCHAR_255____AS__begin__n_____select_foldername_parentid__n_____from__n________folders__n_____where__n________Id__:AFOLDERID__n_____into__n________:path_:AFOLDERID___n___n_____if___:AFOLDERID_is_null__or__:AFOLDERID0___then__n________Path___root____:Path___n_____else__n________select__n___________PATH_____:Path__n________from__n___________GET_FOLDER_PATH_:AFOLDERID___n________into__n___________:PATH___n___n_____suspend___n_end
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002f2e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x35
push str.GRANT_SELECT_ON_FOLDERS_TO_PROCEDURE_GET_FOLDER_PATH_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002f75
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x48
push str.GRANT_EXECUTE_ON_PROCEDURE_GET_FOLDER_PATH_TO_PROCEDURE_GET_FOLDER_PATH_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002fbc
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
push 0x35
push str.GRANT_EXECUTE_ON_PROCEDURE_GET_FOLDER_PATH_TO_SYSDBA_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dc30
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002fff
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1000e550
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10003015
mov eax, dword [ecx]
call dword [eax + 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100364bc
mov esp, ebp
pop ebp
ret 4