Function at 0x4d1f00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5876e9
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5f8310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_4993
push 0x5a9be4
push 0x40b
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6559
mov ecx, dword [ebp - 0xb0]
add ecx, 0x78
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0x7ec
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6559
push 0x5a9be1
mov ecx, dword [ebp - 0xb0]
add ecx, 0x74
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x5f87ac
lea ecx, [ebp - 0x74]
call fcn.005686b0
mov dword [ebp - 4], 0
push 0x3f0
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_2899
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
mov eax, dword [0x5f87c4]
push eax
push str.select_field_2_from_usertabb604_where_left_relationid_8__s_and_field_261_group_by_field_2
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
push 3
push 0
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x74]
call fcn.005688c0
lea ecx, [ebp - 0x74]
call fcn.00569470
test eax, eax
jne 0x4d2058
lea edx, [ebp - 0x94]
push edx
push 0
lea ecx, [ebp - 0x74]
call fcn.0056e700
mov ecx, eax
call fcn.00408d40
mov byte [ebp - 4], 2
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00422150
lea ecx, [ebp - 0x74]
call fcn.00569110
jmp 0x4d1ff4
lea ecx, [ebp - 0x74]
call fcn.00568de0
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x78]
push edx
mov eax, dword [0x5f87c4]
push eax
push str.select_top_1__from_usertabb002_where_relationid_s_and_field_3_s
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
push 3
push 0
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x74]
call fcn.005688c0
lea ecx, [ebp - 0x74]
call fcn.00569470
test eax, eax
je 0x4d20df
lea ecx, [ebp - 0x74]
call fcn.00568de0
mov dword [ebp - 0x98], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.005687e0
mov eax, dword [ebp - 0x98]
jmp 0x4d2348
lea ecx, [ebp - 0x74]
call fcn.00569470
test eax, eax
jne 0x4d2138
lea edx, [ebp - 0x9c]
push edx
push 0x5a9c90
lea ecx, [ebp - 0x74]
call fcn.0056e800
mov ecx, eax
call fcn.00408d40
mov byte [ebp - 4], 3
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xb0]
add ecx, 0x74
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x74]
call fcn.00569110
lea ecx, [ebp - 0x74]
call fcn.00568de0
push 0
mov ecx, dword [ebp - 0x78]
call fcn.00422120
lea ecx, [ebp - 0x90]
push ecx
call fcn.00408a20
lea edx, [ebp - 0x90]
push edx
push 0x3fa
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6530
lea eax, [ebp - 0x90]
push eax
push 0x3fb
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6530
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [0x5f87c4]
push eax
push str.select_top_1__from_usertabb604_where_left_relationid_8__s_and_field_410_and_CHARINDEX__field_1____s____0_order_by_relationid_desc
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
push 0x5a9d38
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xa0]
push eax
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 3
push 0
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x74]
call fcn.005688c0
lea ecx, [ebp - 0x74]
call fcn.00569470
test eax, eax
je 0x4d224e
lea ecx, [ebp - 0x74]
call fcn.00568de0
mov dword [ebp - 0xa4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.005687e0
mov eax, dword [ebp - 0xa4]
jmp 0x4d2348
lea ecx, [ebp - 0x74]
call fcn.00569470
test eax, eax
jne 0x4d22bc
lea ecx, [ebp - 0xa8]
push ecx
push 0x5a9d3c
lea ecx, [ebp - 0x74]
call fcn.0056e800
mov ecx, eax
call fcn.00408d40
mov byte [ebp - 4], 4
lea edx, [ebp - 0xa8]
push edx
mov ecx, dword [ebp - 0xb0]
add ecx, 0x80
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x5a9d44
lea ecx, [ebp - 0x74]
call fcn.0056e800
mov ecx, eax
call fcn.00408d20
fstp qword [ebp - 0x84]
lea ecx, [ebp - 0x74]
call fcn.00568de0
sub esp, 8
fld qword [ebp - 0x84]
fstp qword [esp]
push 0x5a9d4c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0x7ee
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6559
push 1
push 0x7e8
mov ecx, dword [ebp - 0xb0]
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call fcn.00422090
mov dword [ebp - 0xac], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.005687e0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret