Function at 0x404f20
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4093ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], edi
call sub.MFC42.DLL_CString::CString_2
push str.SELECT_CODE_FROM_MVPHNODE
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 1
call fcn.00407cb8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 3
mov eax, dword [ebx]
push eax
push str.SELECT_HEIGHT_XPOS__YPOS_FROM_MVPHNODE_WHERE_CODE___s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xec]
lea eax, [esp + 0x40]
push eax
call fcn.00401ca0
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x68], 4
je 0x404fe2
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00402110
test edi, edi
je 0x404fde
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x68], 3
test ecx, ecx
je 0x404ff9
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40500b
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov edi, eax
call dword [ecx + 0x68]
test eax, eax
jge 0x405028
push 0x40e140
push edi
push eax
call fcn.004088f8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x405073
lea eax, [esi + 0x118]
push eax
lea eax, [esi + 0x110]
push eax
lea eax, [esi + 0x100]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x40e65c
call fcn.00407c7c
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.00405d30
mov eax, dword [esi + 0xec]
push eax
jmp 0x405122
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push ecx
push str.SELECT_HEIGHT_XPOS__YPOS_FROM_LVPHNODE_WHERE_CODE___s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esi + 0xec]
call fcn.00401ca0
mov eax, dword [eax]
mov edi, dword [esp + 0x1c]
cmp edi, eax
mov byte [esp + 0x68], 5
je 0x4050d1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00402110
test edi, edi
je 0x4050d1
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov eax, dword [esp + 0x38]
mov byte [esp + 0x68], 3
test eax, eax
je 0x4050e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esi + 0x118]
lea edx, [esi + 0x100]
push eax
lea eax, [esi + 0x110]
push eax
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x40e65c
call fcn.00407c7c
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x6c], esp
push eax
call fcn.00405d30
mov ecx, dword [esi + 0xec]
push ecx
call fcn.004014d0
mov edx, dword [ebx]
add esp, 0x18
mov eax, edx
lea ecx, [esp + 0x20]
push edx
push eax
push str.SELECT_CODE__HEIGHT_FROM_MVELNODE_WHERE_PHNODE___s_UNION_SELECT_CODE__HEIGHT_FROM_LVELNODE_WHERE_PHNODE___s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xec]
lea eax, [esp + 0x40]
push eax
call fcn.00401ca0
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x68], 6
je 0x405191
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00402110
test edi, edi
je 0x40518d
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x68], 3
test ecx, ecx
je 0x4051a8
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4051ba
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov edi, eax
call dword [ecx + 0x68]
test eax, eax
jge 0x4051d7
push 0x40e140
push edi
push eax
call fcn.004088f8
mov ecx, dword [esi + 0xf4]
test ecx, ecx
je 0x4051e7
mov eax, dword [ecx]
push 3
call dword [eax]
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0xa]
lea edx, [edi + edi*2]
lea eax, [edx*8 + 4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x68], 7
je 0x40522d
push fcn.00402ed0
push 0x402eb0
lea ebx, [eax + 4]
push edi
push 0x18
push ebx
mov dword [eax], edi
call fcn.004086c4
mov eax, ebx
mov ebx, dword [ebp + 8]
jmp 0x40522f
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], ecx
mov edx, dword [ebx]
mov eax, edx
push edx
push eax
lea ecx, [esp + 0x28]
push str.SELECT_MVLINSEC.CODE_FROM_MVLINSEC__MVELNODE_WHERE_ELNODE1__MVELNODE.CODE_AND_PHNODE___s_UNION__SELECT_MVLINSEC.CODE_FROM_MVLINSEC__MVELNODE_WHERE_ELNODE2__MVELNODE.CODE_AND_PHNODE___s
push ecx
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xec]
lea eax, [esp + 0x40]
push eax
call fcn.00401ca0
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
cmp eax, ecx
mov byte [esp + 0x68], 8
je 0x4052ab
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00402110
test edi, edi
je 0x4052a7
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x68], 3
test ecx, ecx
je 0x4052c2
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4052d4
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov edi, eax
call dword [ecx + 0x68]
test eax, eax
jge 0x4052f1
push 0x40e140
push edi
push eax
call fcn.004088f8
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
push str.numero_de_lineas_de_media__d
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x40531e
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov edi, eax
call dword [edx + 0x80]
test eax, eax
jge 0x405339
push 0x40e140
push edi
push eax
call fcn.004088f8
mov eax, dword [ebx]
lea edx, [esp + 0x20]
mov ecx, eax
push eax
push ecx
push str.SELECT_LVLINSEC.CODE_FROM_LVLINSEC__LVELNODE_WHERE_ELNODE1__LVELNODE.CODE_AND_PHNODE___s_UNION__SELECT_LVLINSEC.CODE_FROM_LVLINSEC__LVELNODE_WHERE_ELNODE2__LVELNODE.CODE_AND_PHNODE___s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xec]
call fcn.00401ca0
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
cmp eax, ecx
mov byte [esp + 0x68], 9
je 0x4053a0
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00402110
test edi, edi
je 0x40539c
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x68], 3
test ecx, ecx
je 0x4053b7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4053c9
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov edi, eax
call dword [ecx + 0x68]
test eax, eax
jge 0x4053e6
push 0x40e140
push edi
push eax
call fcn.004088f8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x34], ebx
jne 0x40540b
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push eax
mov edi, eax
call dword [edx + 0x68]
test eax, eax
jge 0x405428
push 0x40e140
push edi
push eax
call fcn.004088f8
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x30]
push edx
push str.numero_de_lineas_de_baja__d
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x405455
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
mov edi, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x405470
push 0x40e140
push edi
push eax
call fcn.004088f8
mov ecx, dword [esi + 0xf0]
test ecx, ecx
je 0x405480
mov edx, dword [ecx]
push 3
call dword [edx]
lea edi, [ebx + 0xa]
lea eax, [edi + edi*2]
lea ecx, [edi + eax*4]
lea edx, [ecx*8 + 4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x68], 0xa
je 0x4054c6
push fcn.004031f0
push 0x403180
lea ebx, [eax + 4]
push edi
push 0x68
push ebx
mov dword [eax], edi
call fcn.004086c4
mov eax, ebx
mov ebx, dword [esp + 0x34]
jmp 0x4054c8
xor eax, eax
mov dword [esi + 0xfc], ebx
xor ebx, ebx
mov byte [esp + 0x68], 3
mov dword [esi + 0xf0], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4054fd
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov edi, eax
call dword [ecx + 0x50]
test eax, eax
jge 0x40551a
push 0x40e140
push edi
push eax
call fcn.004088f8
cmp word [esp + 0x10], 0
jne 0x405c4d
mov eax, dword [esi + 0xf4]
add eax, ebx
lea ecx, [eax + 8]
add eax, 0x10
push ecx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x40e4ac
call fcn.00407c7c
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.00405d30
mov eax, dword [esi + 0xec]
push eax
call fcn.004014d0
mov ecx, dword [esi + 0xf4]
mov edx, dword [ecx + ebx + 0x10]
lea eax, [ecx + ebx + 0x10]
mov ecx, edx
push edx
push ecx
mov eax, edx
push edx
push eax
lea ecx, [esp + 0x44]
push str.SELECT_CODE__XPOS1__YPOS1__XPOS2__YPOS2__R__G__B__ELNODE1__ELNODE2_FROM_MVLINSEC_WHERE_ELNODE1___s_OR_ELNODE2___s_UNION_SELECT_CODE__XPOS1__YPOS1__XPOS2__YPOS2__R_G_B__ELNODE1__ELNODE2_FROM_LVLINSEC_WHERE_ELNODE1___s_OR_ELNODE2___s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x2c
lea edx, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xec]
lea eax, [esp + 0x44]
push eax
call fcn.00401ca0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov byte [esp + 0x68], 0xb
je 0x4055e2
mov ebx, ecx
mov ecx, eax
test eax, eax
mov dword [esp + 0x14], ecx
je 0x4055d4
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x4055e2
mov edx, dword [ebx]
push ebx
call dword [edx + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x68], 3
test eax, eax
je 0x4055f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40560b
push 0x80004003
call fcn.004088ea
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x40]
push eax
push ecx
mov ebx, ecx
call dword [edx + 0x68]
test eax, eax
jge 0x405628
push 0x40e140
push ebx
push eax
call fcn.004088f8
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x30]
push ecx
push str._lineas__d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xc
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esp + 0x34]
mov byte [esp + 0x68], 0xd
lea eax, [edi + edi*2]
lea edi, [edi + eax*4]
shl edi, 3
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40567e
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x12]
push edx
push eax
mov ebx, eax
call dword [ecx + 0x50]
test eax, eax
jge 0x40569b
push 0x40e140
push ebx
push eax
call fcn.004088f8
cmp word [esp + 0x12], 0
jne 0x405bda
mov edx, dword [esi + 0xf0]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
lea eax, [edx + edi]
push ecx
lea ecx, [eax + 0x58]
lea edx, [eax + 0x50]
push ecx
lea ecx, [eax + 0x48]
push edx
push ecx
lea edx, [eax + 0x38]
lea ecx, [eax + 0x30]
push edx
push ecx
lea edx, [eax + 0x18]
lea ecx, [eax + 0x10]
push edx
add eax, 0x60
push ecx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.sdddddddss
call fcn.00407c7c
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
call fcn.00405d30
mov eax, dword [esi + 0xec]
push eax
call fcn.004014d0
mov ecx, dword [esi + 0xf0]
add esp, 0x34
fld qword [ecx + edi + 0x10]
fsub qword [esi + 0x110]
lea eax, [ecx + edi + 0x10]
fstp qword [eax]
mov edx, dword [esi + 0xf0]
fld qword [edx + edi + 0x18]
fsub qword [esi + 0x118]
lea eax, [edx + edi + 0x18]
fstp qword [eax]
mov eax, dword [esi + 0xf0]
fld qword [eax + edi + 0x30]
fsub qword [esi + 0x110]
lea eax, [eax + edi + 0x30]
fstp qword [eax]
mov ecx, dword [esi + 0xf0]
fld qword [ecx + edi + 0x38]
fsub qword [esi + 0x118]
lea eax, [ecx + edi + 0x38]
fstp qword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40577f
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov ebx, eax
call dword [edx + 0x90]
test eax, eax
jge 0x40579a
push 0x40e140
push ebx
push eax
call fcn.004088f8
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0xf0]
mov ebx, dword [ecx + eax + 8]
mov dword [edx + edi + 0x20], ebx
mov ecx, dword [ecx + eax + 0xc]
mov dword [edx + edi + 0x24], ecx
mov edx, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf0]
mov ebx, dword [edx + eax + 8]
mov dword [ecx + edi + 0x40], ebx
mov edx, dword [edx + eax + 0xc]
mov dword [ecx + edi + 0x44], edx
mov eax, dword [esi + 0xf0]
fld qword [eax + edi + 0x10]
fcomp qword [eax + edi + 0x30]
lea ecx, [eax + edi]
fnstsw ax
test ah, 0x40
je 0x405bc9
fld qword [ecx + 0x18]
fcomp qword [ecx + 0x38]
fnstsw ax
test ah, 0x40
je 0x405bc9
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push str.SELECT_HEIGHT_FROM_MVELNODE_WHERE_CODE___s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov dword [esp + 0x18], 0
push 1
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
mov byte [esp + 0x74], 0xe
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0xec]
call fcn.00401ca0
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0x68], 0xf
je 0x40587d
mov ebx, ecx
mov ecx, eax
test eax, eax
mov dword [esp + 0x18], ecx
je 0x40586f
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
test ebx, ebx
je 0x40587d
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov byte [esp + 0x68], 0xe
test eax, eax
je 0x405894
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4058a6
push 0x80004003
call fcn.004088ea
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea eax, [esp + 0x48]
push eax
push ecx
mov ebx, ecx
call dword [edx + 0x68]
test eax, eax
jge 0x4058c3
push 0x40e140
push ebx
push eax
call fcn.004088f8
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x405904
mov ecx, dword [esi + 0xf0]
lea edx, [ecx + edi + 0x20]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x40e378
call fcn.00407c7c
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
call fcn.00405d30
mov ecx, dword [esi + 0xec]
push ecx
jmp 0x4059ae
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push edx
push str.SELECT_HEIGHT_FROM_LVELNODE_WHERE_CODE___s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xec]
lea eax, [esp + 0x54]
push eax
call fcn.00401ca0
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0x68], 0x10
je 0x405967
test eax, eax
mov ebx, ecx
mov dword [esp + 0x18], eax
je 0x40595d
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test ebx, ebx
je 0x405967
mov edx, dword [ebx]
push ebx
call dword [edx + 8]
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x68], 0xe
test eax, eax
je 0x40597a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0xf0]
lea eax, [edx + edi + 0x20]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x40e378
call fcn.00407c7c
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
call fcn.00405d30
mov eax, dword [esi + 0xec]
push eax
call fcn.004014d0
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
jne 0x4059cc
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
mov ebx, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x4059e7
push 0x40e140
push ebx
push eax
call fcn.004088f8
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push edx
push str.SELECT_HEIGHT_FROM_MVELNODE_WHERE_CODE___s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xec]
lea eax, [esp + 0x58]
push eax
call fcn.00401ca0
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
cmp eax, ecx
mov byte [esp + 0x68], 0x11
je 0x405a54
mov ebx, eax
mov eax, ecx
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x405a46
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x405a54
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x68], 0xe
test ecx, ecx
je 0x405a6b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405a7d
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov ebx, eax
call dword [ecx + 0x68]
test eax, eax
jge 0x405a9a
push 0x40e140
push ebx
push eax
call fcn.004088f8
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x405aca
mov eax, dword [esi + 0xf0]
lea ecx, [eax + edi + 0x40]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x40e378
call fcn.00407c7c
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
jmp 0x405b63
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push str.SELECT_HEIGHT_FROM_LVELNODE_WHERE_CODE___s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esi + 0xec]
call fcn.00401ca0
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0x68], 0x12
je 0x405b2d
test eax, eax
mov ebx, ecx
mov dword [esp + 0x18], eax
je 0x405b23
mov edx, dword [eax]
push eax
call dword [edx + 4]
test ebx, ebx
je 0x405b2d
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [esp + 0x58]
mov byte [esp + 0x68], 0xe
test eax, eax
je 0x405b40
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0xf0]
lea eax, [edx + edi + 0x40]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x40e378
call fcn.00407c7c
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
lea edx, [esp + 0x24]
push edx
call fcn.00405d30
mov eax, dword [esi + 0xec]
push eax
call fcn.004014d0
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
jne 0x405b92
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
mov ebx, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x405bad
push 0x40e140
push ebx
push eax
call fcn.004088f8
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
inc edx
mov byte [esp + 0x68], 0xd
test eax, eax
mov dword [esp + 0x38], edx
je 0x405bc9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x34]
inc ecx
add edi, 0x68
mov dword [esp + 0x34], ecx
jmp 0x405668
mov eax, dword [esp + 0x38]
mov edx, dword [esi + 0xfc]
add edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esi + 0xfc], edx
jne 0x405c02
push 0x80004003
call fcn.004088ea
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
mov edi, eax
call dword [ecx + 0x90]
test eax, eax
jge 0x405c1d
push 0x40e140
push edi
push eax
call fcn.004088f8
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
add eax, 0x18
mov byte [esp + 0x68], 0xc
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x2c]
jmp 0x4054e7
mov eax, dword [esp + 0x14]
mov byte [esp + 0x68], 2
test eax, eax
je 0x405c60
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x68], 1
test eax, eax
je 0x405c73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4