Function at 0x46d710
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x127c
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x1278], eax
mov eax, dword [esp + 0x1284]
push ebx
mov ebx, dword [esp + 0x128c]
push ebp
mov ebp, dword [esp + 0x1288]
push esi
xor esi, esi
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x1b], 0
mov dword [esp + 0x30], esi
cmp word [ebp + 0xa], si
jne 0x46d9d0
cmp byte [ebp + 0x10c], 2
jne 0x46d9d0
cmp byte [0x6a11b1], 0
jne 0x46d9d0
lea ecx, [ebp + 0x116]
push str.Debugger
push ecx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x46d9d0
cmp dword [0x6a1088], esi
je 0x46d7d2
lea ebx, [ebp + 0x197]
mov ecx, 5
mov esi, str.JVM_is_already_running
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [0x6a11b1], al
mov dword [esp + 0x10], 0x414f
jmp 0x46e015
lea edx, [esp + 0x30]
push edx
push 1
call fcn.0047da00
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x46e54c
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push 0xfffffffffffffffd
lea eax, [esp + 0x28c]
push str.SELECT_rname_FROM____sysexternal__WHERE_rkey_d
push eax
mov byte [esp + 0x27], 1
call edi
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push edx
push fcn.00472210
lea eax, [esp + 0x2a8]
push 0
push eax
call fcn.0050dfb0
add esp, 0x28
mov dword [esp + 0x10], eax
test eax, eax
je 0x46d83f
mov dword [esp + 0x20], esi
jmp 0x46e54c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46d86d
mov ecx, dword [str.JAVADEBUG]
lea ebx, [ebp + 0x197]
mov dword [ebx], ecx
mov edx, dword [0x5acbc8]
mov dword [ebx + 4], edx
mov ax, word [0x5acbcc]
mov word [ebx + 8], ax
jmp 0x46e00d
movzx ecx, word [eax]
cmp cx, word [eax + 2]
je 0x46d9a6
movsx ecx, cx
add eax, ecx
je 0x46d9a6
mov esi, dword [sym.imp.MSVCR90.dll_strstr]
push str.transport
push eax
call esi
add esp, 8
test eax, eax
je 0x46d95f
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x46d8af
xor eax, eax
jmp 0x46d8b2
cwde
add eax, ecx
push str.suspendy
push eax
call esi
add esp, 8
test eax, eax
je 0x46d95f
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x46d8d6
xor eax, eax
jmp 0x46d8d9
cwde
add eax, ecx
push str.servery
push eax
call esi
add esp, 8
test eax, eax
je 0x46d95f
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x46d8f9
xor eax, eax
jmp 0x46d8fc
cwde
add eax, ecx
push str.address
push eax
call esi
add esp, 8
test eax, eax
je 0x46d95f
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x46d91c
xor eax, eax
jmp 0x46d91f
cwde
add eax, ecx
push str.Xrunjdwp
push eax
call esi
add esp, 8
test eax, eax
jne 0x46d95f
mov eax, dword [esp + 0x14]
mov byte [0x6a11b1], 1
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x46d946
xor ecx, ecx
jmp 0x46d94b
movsx ecx, cx
add ecx, eax
lea ebx, [ebp + 0x197]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46d953
jmp 0x46d98c
mov ecx, dword [esp + 0x14]
mov byte [0x6a11b1], 0
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x46d977
xor eax, eax
jmp 0x46d97a
cwde
add eax, ecx
push eax
lea ebx, [ebp + 0x197]
push str.EXTERNAL_OPTION_JAVADEBUG_is_incorrect:__s
push ebx
call edi
add esp, 0xc
xor edx, edx
cmp byte [0x6a11b1], dl
sete dl
add edx, 0x414e
mov dword [esp + 0x10], edx
jmp 0x46e015
lea ebx, [ebp + 0x197]
mov ecx, 8
mov esi, str.EXTERNAL_OPTION_JAVADEBUG_is_NULL
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [0x6a11b1], 0
mov dword [esp + 0x10], 0x414f
jmp 0x46e015
xor eax, eax
cmp ax, word [ebp + 0xa]
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], ecx
jge 0x46da42
lea edi, [ebp + 0xc]
mov edx, dword [edi]
mov eax, dword [edx + 4]
test eax, eax
je 0x46da2e
cmp byte [esp + 0x129c], 0
jne 0x46da00
test ebx, ebx
je 0x46da2e
cmp byte [ebx + esi], 0
je 0x46da2e
cmp word [eax + 0x1a], 0xffff
jne 0x46daf9
lea ecx, [esp + 0x1c]
push ecx
add eax, 0x1c
push eax
call fcn.004625b0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
mov ecx, dword [esp + 0x1c]
jmp 0x46da36
mov byte [ecx], 0x5f
inc ecx
mov dword [esp + 0x1c], ecx
movsx edx, word [ebp + 0xa]
inc esi
add edi, 4
cmp esi, edx
jl 0x46d9e3
mov byte [ecx], 0
mov eax, dword [str.public]
lea edx, [esp + 0x30]
push edx
add eax, 0x120
lea edi, [ebp + 0x116]
lea ecx, [esp + 0x4c]
push 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
call fcn.0047da00
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
cmp byte [ebp + 0x10c], 2
mov byte [esp + 0x1b], 1
mov eax, 0x5acb30
je 0x46da9c
mov eax, 0x5acb2c
push str.AND_s.rkeysm.rkey_ORDER_BY_lastmodified_DESC_rtype_DESC
push 0x56
push eax
push str.SELECT_COUNT___methodname_sqlsig_parammodes_s.enabled_rname_sm.enabled__t_t_SELECT_MAX_use_privY_or_use_privG__FROM____sysexternalpriv__sp_WHERE__grantee__OR_grantee0__AND___s.rkeysp.rkey_AND_sp.mkey_IS_NULL__OR__s.rkeysp.rkey_AND_sm.mkeysp.mkey_____t_textsig_sqltabsig_exttabsig_paramnames_s.rkey_sm.mkey_lastmodified__t_tcallonnull_determ_checkexcept_ownerrights_sqlaccess_dynasets_resulttype__t_ts.rkey_0_AND_rblob_IS_NULL_rtype_debug_owner_t_tFROM____sysexternal__s_INNER_JOIN____sysexternalmethod__sm_ON
lea eax, [esp + 0x298]
push str._s_sqlname__AND_LOWER_sqlsig__LIKE_LOWER___CAST_CHAR____AND_resulttype_s_c__s
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea ecx, [esp + 0x50]
push ecx
push 3
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x44]
push eax
push fcn.00472210
lea ecx, [esp + 0x2b4]
push 0
push ecx
call fcn.0050dfb0
add esp, 0x34
mov dword [esp + 0x10], eax
test eax, eax
je 0x46db06
mov dword [esp + 0x20], 0
jmp 0x46e54c
mov dword [esp + 0x10], 0x40dc
jmp 0x46e54c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46dbae
lea edx, [esp + 0x48]
xor esi, esi
cmp ax, word [ebp + 0xa]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x48], al
jge 0x46db7b
lea edi, [ebp + 0xc]
lea esp, [esp]
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
test eax, eax
je 0x46db5f
cmp word [eax + 0x1a], 0xffff
jne 0x46daf9
lea edx, [esp + 0x1c]
push edx
add eax, 0x1c
push eax
call fcn.004625b0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
jmp 0x46db6b
mov eax, dword [esp + 0x1c]
mov byte [eax], 0x5f
inc eax
mov dword [esp + 0x1c], eax
movsx eax, word [ebp + 0xa]
inc esi
add edi, 4
cmp esi, eax
jl 0x46db30
mov edi, dword [esp + 0x24]
mov ecx, ebp
sub ecx, edi
mov eax, edi
lea edx, [ecx + 0x197]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x46db87
xor edx, edx
cmp byte [ebp + 0x10c], 2
sete dl
add edx, 0x40d9
mov esi, edx
mov dword [esp + 0x10], esi
jmp 0x46e502
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x46dbbb
xor ecx, ecx
jmp 0x46dbc0
movsx ecx, cx
add ecx, eax
cmp dword [ecx], 1
jne 0x46e4e0
movzx ecx, word [eax + 0x32]
cmp cx, word [eax + 0x34]
jne 0x46dbd7
xor ecx, ecx
jmp 0x46dbdc
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
mov dword [ebp + 0x7d5], ecx
mov edi, dword [str.public]
cmp ecx, dword [edi + 0x120]
je 0x46dc79
mov esi, 0x5acad0
lea ecx, [edi + 0x80]
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x46dc21
test dl, dl
je 0x46dc1d
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x46dc21
add ecx, 2
add esi, 2
test dl, dl
jne 0x46dc01
xor ecx, ecx
jmp 0x46dc26
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x46dc79
movzx ecx, word [eax + 0xe]
cmp cx, word [eax + 0x10]
je 0x46dc40
movsx ecx, cx
add ecx, eax
je 0x46dc40
cmp byte [ecx], 0
jne 0x46dc79
cmp byte [ebp + 0x10c], 2
mov dword [esp + 0x10], 0x1f69
mov eax, str.call_procedure
je 0x46dc5b
mov eax, str.call_function
mov edx, dword [esp + 0x24]
push edx
push eax
push edi
push 0x2f51
push 0x1f69
call fcn.00406f10
add esp, 0x14
jmp 0x46e562
movzx ecx, word [eax + 2]
cmp cx, word [eax + 4]
jne 0x46dc87
xor edx, edx
jmp 0x46dc8c
movsx edx, cx
add edx, eax
lea ebx, [ebp + 0x197]
mov esi, ebx
mov dword [esp + 0x1c], ebx
mov edi, esi
lea ebx, [ebx]
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x46dca0
test edi, edi
je 0x46e00d
movzx ecx, word [eax + 4]
cmp cx, word [eax + 6]
jne 0x46dcc0
xor edx, edx
jmp 0x46dcc5
movsx edx, cx
add edx, eax
lea esi, [ebp + 0x218]
mov edi, esi
lea ecx, [ecx]
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x46dcd0
test edi, edi
je 0x46e00d
movzx ecx, word [eax + 6]
cmp cx, word [eax + 8]
jne 0x46dcf0
xor edx, edx
jmp 0x46dcf5
movsx edx, cx
add edx, eax
lea esi, [ebp + 0x65a]
mov edi, esi
lea ecx, [ecx]
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x46dd00
test edi, edi
je 0x46e00d
movzx ecx, word [eax + 8]
movzx edx, word [eax + 0xa]
cmp cx, dx
jne 0x46dd23
xor ecx, ecx
jmp 0x46dd28
movsx ecx, cx
add ecx, eax
cmp byte [ecx], 0
jne 0x46dd57
cmp dx, word [eax + 0xc]
jne 0x46dd37
xor ecx, ecx
jmp 0x46dd3c
movsx ecx, dx
add ecx, eax
mov edx, ebx
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46dd40
mov dword [esp + 0x10], 0x40df
jmp 0x46e015
movzx ecx, word [eax + 0xc]
cmp cx, word [eax + 0xe]
jne 0x46dd65
xor ecx, ecx
jmp 0x46dd6a
movsx ecx, cx
add ecx, eax
cmp byte [ecx], 0
jne 0x46dd8b
xor eax, eax
cmp byte [ebp + 0x10c], 2
sete al
add eax, 0x40e0
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x46e502
movzx ecx, word [eax + 0x10]
cmp cx, word [eax + 0x12]
je 0x46ddaf
movsx ecx, cx
lea edx, [ecx + eax]
test edx, edx
je 0x46ddaf
lea esi, [ebp + 0x259]
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x46dda5
movzx ecx, word [eax + 0x12]
cmp cx, word [eax + 0x14]
je 0x46de2e
movsx edx, cx
lea esi, [edx + eax]
test esi, esi
je 0x46de2e
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x46ddc8
sub ecx, edi
je 0x46de2e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ddd8
sub eax, edx
inc eax
push eax
call fcn.004346a0
add esp, 4
mov dword [ebp + 0x7e2], eax
test eax, eax
jne 0x46de02
mov dword [esp + 0x10], 6
jmp 0x46e015
mov edx, dword [esp + 0x14]
movzx ecx, word [edx + 0x12]
cmp cx, word [edx + 0x14]
jne 0x46de14
xor ecx, ecx
jmp 0x46de19
movsx ecx, cx
add ecx, edx
mov edx, eax
jmp 0x46de20
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46de20
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0x14]
cmp cx, word [eax + 0x16]
je 0x46deae
movsx ecx, cx
lea esi, [ecx + eax]
test esi, esi
je 0x46deae
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x46de47
sub ecx, edi
je 0x46deae
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46de57
sub eax, edx
inc eax
push eax
call fcn.004346a0
add esp, 4
mov dword [ebp + 0x7de], eax
test eax, eax
jne 0x46de81
mov dword [esp + 0x10], 6
jmp 0x46e015
mov edx, dword [esp + 0x14]
movzx ecx, word [edx + 0x14]
cmp cx, word [edx + 0x16]
jne 0x46de93
xor ecx, ecx
jmp 0x46de98
movsx ecx, cx
add ecx, edx
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46dea0
mov eax, dword [esp + 0x14]
mov cl, byte [ebp + 0x10c]
cmp cl, 1
je 0x46e0ae
xor ebx, ebx
cmp cl, 3
jne 0x46dee6
mov esi, dword [ebp + 0x7e2]
test esi, esi
je 0x46e0ae
lea edx, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x46ded5
sub esi, edx
mov edi, esi
mov dword [esp + 0x24], edi
jmp 0x46deff
lea esi, [ebp + 0x218]
lea edx, [esi + 1]
nop
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x46def0
sub esi, edx
mov edi, esi
mov dword [esp + 0x24], esi
test edi, edi
je 0x46e0ae
lea esi, [edi*4]
push esi
call fcn.004346a0
add esp, 4
mov dword [ebp + 0x7da], eax
test eax, eax
jne 0x46df32
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], 6
jmp 0x46e015
push esi
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0x16]
add esp, 0xc
cmp cx, word [eax + 0x18]
je 0x46e031
movsx edx, cx
add edx, eax
je 0x46e031
mov esi, edx
lea edi, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x46df60
sub esi, edi
je 0x46e02d
cmp dword [esp + 0x24], ebx
mov edi, edx
mov esi, edi
jle 0x46dfec
lea esp, [esp]
mov al, byte [esi + 1]
inc esi
cmp al, 0x2c
je 0x46df8c
test al, al
jne 0x46df80
mov ebp, esi
sub ebp, edi
lea eax, [ebp + 1]
push eax
call fcn.004346a0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x7da]
mov dword [edx + ebx*4], eax
mov eax, dword [ecx + 0x7da]
lea eax, [eax + ebx*4]
add esp, 4
cmp dword [eax], 0
je 0x46df21
mov ecx, dword [eax]
push ebp
push edi
push ecx
call dword [sym.imp.MSVCR90.dll_strncpy]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x7da]
mov ecx, dword [eax + ebx*4]
sub ecx, edi
mov byte [ecx + esi], 0
inc ebx
inc esi
add esp, 0xc
cmp ebx, dword [esp + 0x24]
mov edi, esi
jl 0x46df80
mov eax, dword [esp + 0x14]
mov ebp, edx
cmp byte [esi - 1], 0
jne 0x46e009
cmp byte [ebp + 0x10c], 3
jne 0x46e0ae
cmp ebx, dword [esp + 0x24]
je 0x46e0ae
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x40d8
mov ecx, dword [esp + 0x10]
push ebx
push 0x2f51
push ecx
call fcn.00406f10
add esp, 0xc
jmp 0x46e55b
mov edi, dword [esp + 0x24]
xor esi, esi
test edi, edi
jle 0x46e0ae
mov ecx, 0xfffff9a6
sub ecx, ebp
lea ebx, [ebp + 0x65a]
mov dword [esp + 0x28], ecx
jmp 0x46e050
cmp byte [ebp + 0x10c], 3
je 0x46e063
mov al, byte [ebx]
cmp al, 0x49
je 0x46e0a2
cmp al, 0x4d
je 0x46e0a2
push 0x80
call fcn.004346a0
mov edx, dword [ebp + 0x7da]
mov dword [edx + esi*4], eax
mov eax, dword [ebp + 0x7da]
lea eax, [eax + esi*4]
add esp, 4
cmp dword [eax], 0
je 0x46df21
mov ecx, dword [eax]
push esi
push str.column__u
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x34]
add esp, 0xc
inc esi
inc ebx
lea edx, [ecx + ebx]
cmp edx, edi
jl 0x46e050
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0x18]
cmp cx, word [eax + 0x1a]
jne 0x46e0bc
xor ecx, ecx
jmp 0x46e0c1
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
lea edi, [ebp + 0x10d]
mov dword [edi], ecx
movzx ecx, word [eax + 0x1a]
cmp cx, word [eax + 0x1c]
jne 0x46e0d9
xor ecx, ecx
jmp 0x46e0de
movsx ecx, cx
add ecx, eax
mov edx, dword [ecx]
mov dword [ebp + 0x111], edx
movzx ecx, word [eax + 0x1c]
cmp cx, word [eax + 0x1e]
je 0x46e009
movsx ecx, cx
add ecx, eax
je 0x46e009
mov edx, dword [ecx]
mov dword [ebp + 0x69b], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0x69f], edx
mov edx, dword [ecx + 8]
mov dword [ebp + 0x6a3], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp + 0x6a7], edx
mov cx, word [ecx + 0x10]
mov word [ebp + 0x6ab], cx
movzx ecx, word [eax + 0x1e]
cmp cx, word [eax + 0x20]
jne 0x46e13b
xor ecx, ecx
jmp 0x46e140
movsx ecx, cx
add ecx, eax
mov dl, byte [ecx]
mov byte [ebp + 0x6ad], dl
movzx ecx, word [eax + 0x20]
cmp cx, word [eax + 0x22]
jne 0x46e156
xor ecx, ecx
jmp 0x46e15b
movsx ecx, cx
add ecx, eax
mov cl, byte [ecx]
mov byte [ebp + 0x6ae], cl
movzx ecx, word [eax + 0x22]
cmp cx, word [eax + 0x24]
jne 0x46e171
xor ecx, ecx
jmp 0x46e176
movsx ecx, cx
add ecx, eax
mov dl, byte [ecx]
mov byte [ebp + 0x6af], dl
movzx ecx, word [eax + 0x24]
cmp cx, word [eax + 0x26]
jne 0x46e18c
xor ecx, ecx
jmp 0x46e191
movsx ecx, cx
add ecx, eax
mov cl, byte [ecx]
mov byte [ebp + 0x6b0], cl
movzx ecx, word [eax + 0x26]
cmp cx, word [eax + 0x28]
jne 0x46e1a7
xor ecx, ecx
jmp 0x46e1ac
movsx ecx, cx
add ecx, eax
mov dl, byte [ecx]
mov byte [ebp + 0x6b1], dl
movzx ecx, word [eax + 0x28]
cmp cx, word [eax + 0x2a]
jne 0x46e1c2
xor ecx, ecx
jmp 0x46e1c7
movsx ecx, cx
add ecx, eax
mov cl, byte [ecx]
mov byte [ebp + 0x6b2], cl
movzx ecx, word [eax + 0x2a]
cmp cx, word [eax + 0x2c]
jne 0x46e1dd
xor ecx, ecx
jmp 0x46e1e2
movsx ecx, cx
add ecx, eax
mov dl, byte [ecx]
mov byte [ebp + 0x115], dl
movzx ecx, word [eax + 0x2c]
cmp cx, word [eax + 0x2e]
jne 0x46e1f8
xor ecx, ecx
jmp 0x46e1fd
movsx ecx, cx
add ecx, eax
mov cl, byte [ecx]
mov byte [ebp + 0x6b3], cl
movzx ecx, word [eax + 0x2e]
cmp cx, word [eax + 0x30]
jne 0x46e213
xor ecx, ecx
jmp 0x46e218
movsx ecx, cx
add ecx, eax
mov dl, byte [ecx]
mov byte [ebp + 0x6b4], dl
movzx ecx, word [eax + 0x30]
cmp cx, word [eax + 0x32]
jne 0x46e22e
xor ecx, ecx
jmp 0x46e233
movsx ecx, cx
add ecx, eax
cmp byte [ebp + 0x10c], 3
mov al, byte [ecx]
mov byte [ebp + 0x7d9], al
je 0x46e25f
mov ecx, dword [esp + 0x129c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
push ebp
call fcn.00462660
add esp, 0x10
cmp byte [ebp + 0x6b0], 0
je 0x46e377
mov ecx, dword [esp + 0x20]
lea eax, [ebp + 0x7d5]
push ecx
mov dword [esp + 0x3c], eax
call fcn.0050dec0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
lea edx, [esp + 0x38]
push edx
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push fcn.00472210
push 0
push str.SELECT_username_userclass_passwd_FROM____sysuser__WHERE_userid_
call fcn.0050dfb0
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
je 0x46e2c9
mov dword [esp + 0x20], 0
jmp 0x46e54c
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x46e2ed
push str.PROCEDURE_OWNER
push 0x2f51
push 0x1f7f
call fcn.00406f10
add esp, 0xc
jmp 0x46e562
movzx eax, word [esi]
cmp ax, word [esi + 2]
jne 0x46e2fa
xor ecx, ecx
jmp 0x46e2ff
movsx ecx, ax
add ecx, esi
lea edx, [ebp + 0x6b5]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46e305
movzx eax, word [esi + 2]
cmp ax, word [esi + 4]
jne 0x46e31d
xor ecx, ecx
jmp 0x46e322
movsx ecx, ax
add ecx, esi
lea edx, [ebp + 0x735]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46e328
movzx eax, word [esi + 4]
cmp ax, word [esi + 6]
jne 0x46e340
xor ecx, ecx
jmp 0x46e345
movsx ecx, ax
add ecx, esi
lea edx, [ebp + 0x7b5]
jmp 0x46e350
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46e350
mov edx, dword [esp + 0x20]
push edx
call fcn.0050dec0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
mov dword [esp + 0x20], eax
cmp byte [ebp + 0x6b4], 3
je 0x46e435
cmp byte [ebp + 0x6b3], 0
je 0x46e3ca
cmp dword [0x6a1088], 0
jne 0x46e3af
lea eax, [esp + 0x34]
push eax
call fcn.00467410
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
mov edx, dword [esp + 0x34]
push edi
xor ecx, ecx
call fcn.004634c0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
cmp byte [ebp + 0x259], 0
lea ecx, [ebp + 0x259]
jne 0x46e435
cmp byte [ebp + 0x10c], 3
jne 0x46e3e9
mov byte [ebp + 0x115], 0x56
movzx edx, byte [ebp + 0x115]
push edx
lea eax, [ebp + 0x65a]
push eax
lea eax, [ebp + 0x218]
push eax
push ecx
call fcn.004612b0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
cmp byte [ebp + 0x10c], 3
jne 0x46e4a7
mov eax, dword [ebp + 0x7e2]
neg eax
sbb al, al
and al, 0xed
add al, 0x6d
mov byte [ebp + 0x115], al
cmp byte [ebp + 0x10c], 3
jne 0x46e4a7
cmp dword [ebp + 0x7de], 0
jne 0x46e4a7
cmp dword [ebp + 0x7e2], 0
jne 0x46e459
mov ecx, ebp
call fcn.0046d080
jmp 0x46e49b
push 0x401
call fcn.004346a0
add esp, 4
mov dword [ebp + 0x7de], eax
test eax, eax
jne 0x46e481
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], 6
jmp 0x46e015
movzx ecx, byte [ebp + 0x115]
mov edx, dword [ebp + 0x7e2]
push ecx
push 0
push edx
push eax
call fcn.004612b0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
cmp byte [ebp + 0x6b4], 3
jne 0x46e4bd
cmp byte [ebp + 0x10c], 3
je 0x46e562
xor eax, eax
cmp byte [ebp + 0x10c], 3
sete al
push eax
push ebp
call fcn.00463900
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46e54c
jmp 0x46e562
cmp byte [esp + 0x129c], 0
je 0x46e52c
xor edx, edx
cmp byte [ebp + 0x10c], 2
sete dl
add edx, 0x40d9
mov esi, edx
mov dword [esp + 0x10], edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004614b0
push eax
add ebp, 0x197
push ebp
push 0x2f51
push esi
call fcn.00406f10
add esp, 0x18
jmp 0x46e562
mov edx, dword [esp + 0x2c]
cmp byte [edx], 0
jne 0x46e562
push 1
push ebx
mov eax, edx
push eax
push ebp
call fcn.0046d710
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x46e562
push 0x2f51
push 0
call fcn.00406f10
add esp, 8
cmp byte [esp + 0x1b], 0
je 0x46e571
lea ecx, [esp + 0x30]
push ecx
push 2
call fcn.0047dad0
add esp, 8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x46e586
push eax
call fcn.0050dec0
add esp, 4
mov ecx, dword [esp + 0x1278]
mov eax, dword [esp]
xor ecx, esp
call fcn.00586584
add esp, 0x127c
ret