Function at 0x421570
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e598
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x5f8310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 3
push 0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 0x50c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x4b0
call fcn.0049e180
lea edx, [ebp - 0x88]
push edx
push 0x3ea
mov ecx, dword [ebp - 0xc0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_4116
push 0x3f7
mov ecx, dword [ebp - 0xc0]
call sub.mfc90.dll_Ordinal_2899
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call fcn.004220f0
cmp eax, 0xffffffff
je 0x421651
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004220f0
push eax
mov ecx, dword [ebp - 0x14]
call sub.mfc90.dll_Ordinal_3175
jmp 0x42166f
lea ecx, [ebp - 0x88]
push ecx
push 0x3f7
mov ecx, dword [ebp - 0xc0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_4116
mov edx, dword [ebp - 0xc0]
mov dword [edx + 0x550], 1
cmp dword [ebp + 0xc], 0
jne 0x4216ae
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x5f87c4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x5f87c4]
push eax
push str.select__from__select__select_top_1__case_when_len_field_5__0_then_field_5_else_field_3_end__from_usertabb002_where_field_3t1.field_3__as_field_3_field_5_sum_field_6__as_field_6_max_field_7__as_field_7_min_field_9__as_field_9_0_as_field_14__0_as_field_16_case_when_left_right_max_field_17__11__1___then_min_left_right_field_17_21__10___max_right_field_17_10___else__left_convert_varchar_min_field_7__102__7__left_convert_varchar_max_field_7__102__7___end_as_field_17_min_field_4__as_field_4_dbo.F_Str1_min_relationid___max_relationid___field_3_field_5__as_itemid_usertabb005_as_tablename_from_usertabb005_as_t1_where_field_11_100_and_left_relationid_8__s_and__field_3_s___and_field_9_
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x18
jmp 0x4216dc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x5f87c4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x5f87c4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.select__from__select__select_top_1__case_when_len_field_5__0_then_field_5_else_field_3_end__from_usertabb002_where_field_3t1.field_3__as_field_3_field_5_sum_field_6__as_field_6_max_field_7__as_field_7_min_field_9__as_field_9_0_as_field_14__0_as_field_16_case_when_left_right_max_field_17__11__1___then_min_left_right_field_17_21__10___max_right_field_17_10___else__left_convert_varchar_min_field_7__102__7__left_convert_varchar_max_field_7__102__7___end_as_field_17_min_field_4__as_field_4_dbo.F_Str1_min_relationid___max_relationid___field_3_field_5__as_itemid_usertabb005_as_tablename_from_usertabb005_as_t1_where_field_11_100_and_field_5_in__select_field_1_from_usertabb197_where_field_2_d__and_left_relationid_8__s_and__field_3_s___and_field_9_
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x20
push 0x5f87ac
lea ecx, [ebp - 0x80]
call fcn.005686b0
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0xc0]
mov dword [eax + 0x528], 0xa
push 0x5a0550
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 5
push 3
push 0
push 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x80]
call fcn.005688c0
jmp 0x421847
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x80]
call fcn.00569470
test eax, eax
je 0x4218c0
mov eax, dword [ebp - 0xc0]
mov dword [eax + 0x514], 1
lea ecx, [ebp - 0x80]
call fcn.00568de0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.005687e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x421ba2
lea ecx, [ebp - 0x80]
call fcn.00569470
test eax, eax
jne 0x421b32
mov dword [ebp - 0x18], 0
jmp 0x4218e2
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 9
jge 0x4219bc
cmp dword [ebp - 0x18], 2
je 0x4218fe
cmp dword [ebp - 0x18], 5
je 0x4218fe
cmp dword [ebp - 0x18], 6
jne 0x421941
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x80]
call fcn.0056e700
mov ecx, eax
call fcn.00408d20
fstp qword [ebp - 0x90]
sub esp, 8
fld qword [ebp - 0x90]
fstp qword [esp]
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x4b0
call fcn.0049c350
jmp 0x4219b7
lea edx, [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x80]
call fcn.0056e700
mov ecx, eax
call fcn.0056dee0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x4b0
call fcn.0049ca20
jmp 0x4218d9
lea edx, [ebp - 0xb8]
push edx
push 0x5a05ac
lea ecx, [ebp - 0x80]
call fcn.0056e800
mov ecx, eax
call fcn.00408d40
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0
push 0x5a05b4
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
test eax, eax
jle 0x421a32
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0x1e
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x4b0
call fcn.0049ca20
jmp 0x421a6e
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [ebp - 0xd0], eax
fild dword [ebp - 0xd0]
sub esp, 8
fstp qword [esp]
push 0x1e
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x4b0
call fcn.0049c350
lea eax, [ebp - 0xbc]
push eax
push str.tablename
lea ecx, [ebp - 0x80]
call fcn.0056e800
mov ecx, eax
call fcn.00408d40
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0x1f
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x4b0
call fcn.0049ca20
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov edx, dword [ebp - 0xc0]
cmp ecx, dword [edx + 0x528]
jl 0x421b25
push 3
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x4b0
call fcn.0049db00
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 0x528]
add eax, 1
mov ecx, dword [ebp - 0xc0]
mov dword [ecx + 0x528], eax
lea ecx, [ebp - 0x80]
call fcn.00569110
jmp 0x4218c0
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x514], eax
lea ecx, [ebp - 0x80]
call fcn.00568de0
mov ecx, dword [ebp - 0xc0]
mov dword [ecx + 0x51c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.005687e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8