Function at 0x403f40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [0x41a8a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x510]
push edi
mov edi, dword [ebp + 8]
push 0x4e2
push 0
push eax
call fcn.00407d60
mov eax, dword [0x41a894]
add esp, 0xc
inc dword [0x41b980]
inc dword [eax]
mov dword [edi], 0
cmp dword [0x41b99c], 0
je 0x403fa0
push 0x41cb53
push str.POS_ReaffectationFondPropre___A21TRT.TRT_OIDSOC__s___n
call fcn.00407c39
add esp, 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x704], 0xd
mov dword [ebp - 0x690], eax
mov ebx, 1
xor eax, eax
mov dword [ebp - 0x700], 4
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x5fc], eax
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 0x59c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x5f8], eax
mov dword [ebp - 0x5c8], eax
mov dword [ebp - 0x598], eax
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x5f4], eax
mov dword [ebp - 0x5c4], eax
mov dword [ebp - 0x594], eax
lea eax, [ebp - 0x690]
mov dword [ebp - 0x6d8], eax
lea eax, [ebp - 0x660]
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x6d0], eax
lea eax, [ebp - 0x600]
mov dword [ebp - 0x6cc], eax
lea eax, [ebp - 0x5d0]
mov dword [ebp - 0x6c8], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x6c4], eax
lea eax, [ebp - 0x570]
mov dword [ebp - 0x6c0], eax
lea eax, [ebp - 0x540]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x704]
push 0x413208
push eax
push 0x41a02c
push 0
mov dword [ebp - 0x6e0], 0x41a000
mov dword [ebp - 0x6dc], 0x41a020
mov dword [ebp - 0x6e4], str.select_OID_INTO_:b0_FROM_TRT_WHERE_TRT_FLGVAL__1_AND_TRT_OIDSOC__:b1_AND_TRT_DAT____SELECT_MAX___TRT_DAT___FROM_TRT_WHERE_TRT_FLGVAL__1_AND_TRT_DAT___:b2_AND_TRT_OIDSOC__:b1__
mov dword [ebp - 0x6fc], 1
mov dword [ebp - 0x6f8], 5
mov dword [ebp - 0x6f4], 0x11000001
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x6ec], 0x413298
mov dword [ebp - 0x6e8], 0x45ee40
mov dword [ebp - 0x6f0], 0
mov dword [ebp - 0x660], 0x25
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x600], 0
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x5a0], 0
mov dword [ebp - 0x68c], 0x41cb53
mov dword [ebp - 0x65c], 0x25
mov dword [ebp - 0x688], 0x41cb80
mov dword [ebp - 0x658], 0xf
mov dword [ebp - 0x684], 0x41cb53
mov dword [ebp - 0x654], 0x25
call sub.orasql12.dll_sqlcxt
mov eax, dword [0x45ee4c]
add esp, 0x10
test eax, eax
jns 0x4041d3
push 0x45ee40
push str.MAX_TRT_DAT_
lea eax, [ebp - 0x510]
push eax
push dword [0x41b980]
push dword [0x41a894]
push 0x1da
push str.POS_ReaffectationFondPropre
push str.CADPos01GenCADPos01CAL.c
call dword [sym.imp.CADArchit.dll__CADErrorTechSql_32]
mov ecx, dword [0x41a894]
mov eax, ebx
pop edi
pop esi
pop ebx
dec dword [ecx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d45
mov esp, ebp
pop ebp
ret
cmp eax, 0x57b
jne 0x4041fa
mov dword [edi], ebx
cmp dword [0x41b99c], 0
je 0x4041f2
push str.Pas_de_r
call fcn.00407c39
add esp, 4
mov byte [esi], 0
jmp 0x404750
cmp dword [0x41b99c], 0
je 0x40422a
push str.recherche_de_la_somme_des_fonds_propres_dans_la_table_PRQ__n
call fcn.00407c39
add esp, 4
cmp dword [0x41b99c], 0
je 0x40422a
lea eax, [ebp - 0x2c]
push eax
push str.POS_ReaffectationFondPropre___szIDTRT_______n
call fcn.00407c39
add esp, 8
lea eax, [ebp - 0x71c]
mov dword [ebp - 0x704], 0xd
mov dword [ebp - 0x690], eax
lea eax, [ebp - 0x70c]
mov dword [ebp - 0x600], eax
xor eax, eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x68c], eax
lea eax, [ebp - 0x690]
mov dword [ebp - 0x6d8], eax
lea eax, [ebp - 0x660]
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x6d0], eax
lea eax, [ebp - 0x600]
mov dword [ebp - 0x6cc], eax
lea eax, [ebp - 0x5d0]
mov dword [ebp - 0x6c8], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x6c4], eax
lea eax, [ebp - 0x570]
mov dword [ebp - 0x6c0], eax
lea eax, [ebp - 0x540]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x704]
push 0x413208
push eax
push 0x41a02c
push 0
mov dword [ebp - 0x700], 4
mov dword [ebp - 0x6e0], 0x41a000
mov dword [ebp - 0x6dc], 0x41a020
mov dword [ebp - 0x6e4], str.select_SUM___PRQ_MNTFPR___INTO_:b0:b1_FROM_PRQ_WHERE_PRQ_OIDTRT__:b2
mov dword [ebp - 0x6fc], ebx
mov dword [ebp - 0x6f8], 0x24
mov dword [ebp - 0x6f4], 0x11000001
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x6ec], 0x413298
mov dword [ebp - 0x6e8], 0x45ee40
mov dword [ebp - 0x6f0], 0
mov dword [ebp - 0x660], 8
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x5a0], 0
mov dword [ebp - 0x65c], 0x25
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x5fc], 0
mov dword [ebp - 0x5cc], 0
mov dword [ebp - 0x59c], 0
call sub.orasql12.dll_sqlcxt
lea eax, [ebp - 0x714]
mov dword [ebp - 0x704], 0xd
mov dword [ebp - 0x690], eax
lea eax, [ebp - 0x708]
mov dword [ebp - 0x600], eax
xor eax, eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x700], 4
mov dword [ebp - 0x6e0], 0x41a000
mov dword [ebp - 0x6dc], 0x41a020
mov dword [ebp - 0x6e4], str.select_TRT_FPRAFF_INTO_:b0:b1_FROM_TRT_WHERE_OID__:b2
mov dword [ebp - 0x6fc], ebx
mov dword [ebp - 0x6f8], 0x3b
mov dword [ebp - 0x6f4], 0x11000001
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x6ec], 0x413298
mov dword [ebp - 0x6e8], 0x45ee40
mov dword [ebp - 0x6f0], 0
mov dword [ebp - 0x660], 8
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x5a0], 0
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x65c], 0x25
mov dword [ebp - 0x62c], 0
lea eax, [ebp - 0x690]
mov dword [ebp - 0x5fc], 0
mov dword [ebp - 0x6d8], eax
lea eax, [ebp - 0x660]
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x6d0], eax
lea eax, [ebp - 0x600]
mov dword [ebp - 0x6cc], eax
lea eax, [ebp - 0x5d0]
mov dword [ebp - 0x6c8], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x6c4], eax
lea eax, [ebp - 0x570]
mov dword [ebp - 0x6c0], eax
lea eax, [ebp - 0x540]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x704]
push 0x413208
push eax
push 0x41a02c
push 0
mov dword [ebp - 0x5cc], 0
mov dword [ebp - 0x59c], 0
call sub.orasql12.dll_sqlcxt
add esp, 0x20
cmp word [ebp - 0x70c], 0xffff
jne 0x404547
cmp word [ebp - 0x708], 0xffff
je 0x40473a
movsd xmm0, qword [ebp - 0x714]
addsd xmm0, qword [ebp - 0x71c]
comisd xmm0, xmmword [ebp + 0x10]
ja 0x40473a
mov eax, 0x1100
mov dword [ebp - 0x704], 0xd
mov word [ebp - 0x6f2], ax
lea eax, [ebp - 0x714]
mov dword [ebp - 0x690], eax
lea eax, [ebp - 0x708]
mov dword [ebp - 0x600], eax
xor eax, eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x5fc], eax
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 0x59c], eax
lea eax, [ebp - 0x690]
mov dword [ebp - 0x6d8], eax
lea eax, [ebp - 0x660]
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x6d0], eax
lea eax, [ebp - 0x600]
mov dword [ebp - 0x6cc], eax
lea eax, [ebp - 0x5d0]
mov dword [ebp - 0x6c8], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x6c4], eax
lea eax, [ebp - 0x570]
mov dword [ebp - 0x6c0], eax
lea eax, [ebp - 0x540]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x704]
push 0x413208
push eax
push 0x41a02c
push 0
mov dword [ebp - 0x700], 4
mov dword [ebp - 0x6e0], 0x41a000
mov dword [ebp - 0x6dc], 0x41a020
mov dword [ebp - 0x6e4], str.update_TRT_SET_TRT_FPRAFF__:b0:b1_WHERE_OID__:b2
mov dword [ebp - 0x6fc], ebx
mov dword [ebp - 0x6f8], 0x52
mov dword [ebp - 0x6ec], 0x413298
mov dword [ebp - 0x6e8], 0x45ee40
mov dword [ebp - 0x6f0], 0
mov dword [ebp - 0x660], 8
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x5a0], 0
mov dword [ebp - 0x68c], 0x41cb00
mov dword [ebp - 0x65c], 0x25
call sub.orasql12.dll_sqlcxt
add esp, 0x10
cmp dword [0x45ee4c], 0
jge 0x40473c
cmp dword [0x41b99c], 0
je 0x4046ee
push str.pppp8__n
call fcn.00407c39
add esp, 4
push 0x45ee40
push str.Update_TRT
lea eax, [ebp - 0x510]
push eax
push dword [0x41b980]
push dword [0x41a894]
push 0x29a
push str.POS_ReaffectationFondPropre
push str.CADPos01GenCADPos01CAL.c
call dword [sym.imp.CADArchit.dll__CADErrorTechSql_32]
mov eax, dword [0x41a894]
pop edi
pop esi
dec dword [eax]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d45
mov esp, ebp
pop ebp
ret
mov dword [edi], ebx
lea ecx, [ebp - 0x2c]
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x404743
mov eax, dword [0x41a894]
mov ecx, dword [ebp - 4]
pop edi
pop esi
dec dword [eax]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00407d45
mov esp, ebp
pop ebp
ret