Function at 0x1002ba10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fed38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x194]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x38]
call fcn.100f0383
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x74
call sub.MFC70D.DLL_Ordinal_3294
lea ecx, [ebp - 0x44]
call fcn.10003140
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xd4], 0
je 0x1002bab6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xd4]
mov ecx, dword [ecx]
mov esi, esp
push eax
call dword [ecx + 8]
cmp esi, esp
call fcn.100ec680
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xd4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT__FROM_NPartPic_WHERE_PrtNum_d_AND_Number_d
lea edx, [ebp - 0x44]
push edx
call fcn.10002610
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
lea eax, [ebp - 0x44]
push eax
call fcn.10003190
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18c
call fcn.1002eb70
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x1002bb2e
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003280
mov eax, dword [ebp - 0x134]
jmp 0x1002bd69
cmp dword [ebp - 0x5c], 0
jne 0x1002bb83
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x74
call sub.MFC70D.DLL_Ordinal_1836
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
call sub.MFC70D.DLL_Ordinal_7360
push 5
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
call sub.MFC70D.DLL_Ordinal_7037
mov dword [ebp - 0x140], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003280
mov eax, dword [ebp - 0x140]
jmp 0x1002bd69
mov ecx, dword [ebp - 0x14]
add ecx, 0x18c
call fcn.1002f540
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14c], esp
push str.File
call fcn.100031e0
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18c
call fcn.10030b90
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x50], ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x158], esp
push str.Number
call fcn.100031e0
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18c
call fcn.100301d0
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x194]
mov dword [eax + 0xcc], ecx
mov eax, dword [ebp - 0x14]
add eax, 0xd4
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.1002bde0
mov ecx, dword [ebp - 0x14]
call fcn.1002bf20
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xcc]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push str.SELECT__FROM_NPartPic_WHERE_PrtNum_d_AND_Number_d
lea eax, [ebp - 0x44]
push eax
call fcn.10002610
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
lea eax, [ebp - 0x44]
push eax
call fcn.10003190
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18c
call fcn.1002eb70
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
jne 0x1002bc97
push 0
push 0x80ec
mov ecx, dword [ebp - 0x14]
call sub.MFC70D.DLL_Ordinal_3519
mov ecx, eax
call sub.MFC70D.DLL_Ordinal_2838
jmp 0x1002bcad
push 1
push 0x80ec
mov ecx, dword [ebp - 0x14]
call sub.MFC70D.DLL_Ordinal_3519
mov ecx, eax
call sub.MFC70D.DLL_Ordinal_2838
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xcc]
sub ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push str.SELECT__FROM_NPartPic_WHERE_PrtNum_d_AND_Number_d
lea eax, [ebp - 0x44]
push eax
call fcn.10002610
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x170], esp
lea eax, [ebp - 0x44]
push eax
call fcn.10003190
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18c
call fcn.1002eb70
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
jne 0x1002bd1c
push 0
push 0x3e84
mov ecx, dword [ebp - 0x14]
call sub.MFC70D.DLL_Ordinal_3519
mov ecx, eax
call sub.MFC70D.DLL_Ordinal_2838
jmp 0x1002bd32
push 1
push 0x3e84
mov ecx, dword [ebp - 0x14]
call sub.MFC70D.DLL_Ordinal_3519
mov ecx, eax
call sub.MFC70D.DLL_Ordinal_2838
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
push ecx
call sub.MFC70D.DLL_Ordinal_260
add esp, 4
mov dword [ebp - 0x188], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003280
mov eax, dword [ebp - 0x188]
push edx
mov ecx, ebp
push eax
lea edx, [0x1002bd9a]
call fcn.100ec6b0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x194
cmp ebp, esp
call fcn.100ec680
mov esp, ebp
pop ebp
ret 8