Function at 0x409b70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b0c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x461fe4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
push ecx
push str.SELECT_ID__HouseNo__CaseState__OptID__FROM_FCFH_BLDG_WHERE_ID___d
mov dword [ebp - 4], 0
push edx
mov dword [esi + 0x64], 0xffffffff
mov byte [ebp - 4], 1
call fcn.0042dd0d
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edi, eax
mov word [ebp - 0x3c], 8
push eax
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x409bef
test edi, edi
je 0x409bef
push 0x8007000e
call fcn.0042d648
mov eax, dword [0x4661b0]
mov word [ebp - 0x2c], 9
mov dword [ebp - 0x24], eax
mov ebx, 2
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], bl
call dword [ecx + 4]
mov eax, dword [esi + 0x32c]
mov byte [ebp - 4], 3
test eax, eax
jne 0x409c23
push 0x80004003
call fcn.0042d648
mov ecx, dword [ebp - 0x2c]
push 1
push ebx
push ebx
sub esp, 0x10
mov edi, dword [esi + 0x32c]
mov eax, esp
sub esp, 0x10
mov edx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
call dword [edx + 0xa0]
test eax, eax
mov dword [ebp + 8], eax
jge 0x409c81
push 0x45f358
push edi
push eax
call fcn.0042d656
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], bl
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edx
call ebx
test eax, eax
jge 0x409c9a
push eax
call fcn.0042d648
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call ebx
test eax, eax
jge 0x409cae
push eax
call fcn.0042d648
mov eax, dword [ebp + 8]
test eax, eax
jge 0x409ce6
push 0x45fe00
lea ecx, [esi + 0x60]
call fcn.004313ab
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00431222
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x32c]
mov dword [ebp - 4], 0
test eax, eax
jne 0x409d01
push 0x80004003
call fcn.0042d648
mov edi, dword [esi + 0x32c]
lea edx, [ebp + 8]
push edx
push edi
mov ecx, dword [edi]
call dword [ecx + 0x68]
test eax, eax
jge 0x409d21
push 0x45f358
push edi
push eax
call fcn.0042d656
mov eax, dword [ebp + 8]
test eax, eax
jne 0x409d3a
push 0x45fdec
lea ecx, [esi + 0x60]
call fcn.004313ab
jmp 0x40a017
mov edi, 8
push str.CaseState
mov word [ebp - 0x3c], di
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x409d67
mov eax, str.CaseState
test eax, eax
je 0x409d67
push 0x8007000e
call fcn.0042d648
mov eax, dword [esi + 0x32c]
mov byte [ebp - 4], 6
test eax, eax
jne 0x409d7f
push 0x80004003
call fcn.0042d648
mov ecx, dword [esi + 0x32c]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.0040b740
mov ecx, dword [eax + 8]
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x1c], ecx
call ebx
test eax, eax
jge 0x409da8
push eax
call fcn.0042d648
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0
push eax
call ebx
test eax, eax
jge 0x409dbc
push eax
call fcn.0042d648
push 0x45f748
mov word [ebp - 0x3c], di
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x409de4
mov ecx, 0x45f748
test ecx, ecx
je 0x409de4
push 0x8007000e
call fcn.0042d648
mov eax, dword [esi + 0x32c]
mov byte [ebp - 4], 7
test eax, eax
jne 0x409dfc
push 0x80004003
call fcn.0042d648
mov ecx, dword [esi + 0x32c]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.0040b740
mov ecx, dword [eax + 8]
lea edx, [ebp - 0x2c]
push edx
mov dword [esi + 0x64], ecx
call ebx
test eax, eax
jge 0x409e25
push eax
call fcn.0042d648
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0
push eax
call ebx
test eax, eax
jge 0x409e39
push eax
call fcn.0042d648
push str.HouseNo
mov word [ebp - 0x2c], di
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x24], eax
jne 0x409e61
mov ecx, str.HouseNo
test ecx, ecx
je 0x409e61
push 0x8007000e
call fcn.0042d648
mov eax, dword [esi + 0x32c]
mov byte [ebp - 4], 8
test eax, eax
jne 0x409e79
push 0x80004003
call fcn.0042d648
mov ecx, dword [esi + 0x32c]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x4c]
push edx
push eax
call fcn.0040b740
mov edi, eax
mov dword [ebp + 8], 0
cmp word [edi], 8
mov byte [ebp - 4], 9
jne 0x409ead
mov ecx, dword [edi + 8]
push ecx
lea ecx, [ebp + 8]
call fcn.0040b0f0
jmp 0x409ee6
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push 8
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0040b470
mov eax, dword [ebp - 0x34]
lea ecx, [ebp + 8]
push eax
call fcn.0040b0f0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
push ecx
call ebx
test eax, eax
jge 0x409ee6
push eax
call fcn.0042d648
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x409ef8
call fcn.00402b90
jmp 0x409efa
xor eax, eax
push eax
lea ecx, [esi + 0x68]
call fcn.004313ab
lea ecx, [ebp + 8]
call fcn.00402960
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 8
push edx
call ebx
test eax, eax
jge 0x409f1f
push eax
call fcn.0042d648
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
call ebx
test eax, eax
jge 0x409f33
push eax
call fcn.0042d648
push str.OptID
mov word [ebp - 0x3c], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x409f5d
mov ecx, str.OptID
test ecx, ecx
je 0x409f5d
push 0x8007000e
call fcn.0042d648
mov eax, dword [esi + 0x32c]
mov byte [ebp - 4], 0xc
test eax, eax
jne 0x409f75
push 0x80004003
call fcn.0042d648
mov ecx, dword [esi + 0x32c]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x4c]
push edx
push eax
call fcn.0040b740
mov edi, dword [eax + 8]
lea ecx, [ebp - 0x4c]
push ecx
call ebx
test eax, eax
jge 0x409f9b
push eax
call fcn.0042d648
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 0
push edx
call ebx
test eax, eax
jge 0x409faf
push eax
call fcn.0042d648
mov eax, dword [ebp - 0x1c]
mov ecx, esi
cmp eax, 1
jne 0x409fd1
call fcn.00404140
test al, al
jne 0x40a013
push 0x45fdd8
lea ecx, [esi + 0x60]
call fcn.004313ab
jmp 0x40a017
call fcn.00404160
test al, al
je 0x409fe9
mov al, byte [esi + 0x330]
test al, al
jne 0x40a013
cmp dword [esi + 0x6c], edi
je 0x40a013
mov ecx, esi
call fcn.00404180
test al, al
jne 0x40a013
mov ecx, esi
call fcn.004041a0
test al, al
je 0x40a004
cmp dword [esi + 0x6c], edi
je 0x40a013
push 0x45fdc8
lea ecx, [esi + 0x60]
call fcn.004313ab
jmp 0x40a017
mov byte [ebp - 0x11], 1
mov eax, dword [esi + 0x32c]
test eax, eax
jne 0x40a02b
push 0x80004003
call fcn.0042d648
mov esi, dword [esi + 0x32c]
push esi
mov eax, dword [esi]
call dword [eax + 0x80]
test eax, eax
jge 0x40a04a
push 0x45f358
push esi
push eax
call fcn.0042d656
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00431222
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4