Function at 0x40fc83
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c10
call fcn.00407000
push ebx
push esi
push edi
push str.ReturnAllCompany
lea eax, [ebp - 0x410]
push str.brocomp.c
push eax
xor ebx, ebx
xor esi, esi
call fcn.0040f00a
push dword [ebp + 0xc]
lea eax, [ebp - 0x610]
push eax
call fcn.0040f694
push 0x45c9e0
lea eax, [ebp - 0x1c10]
push str.SELECT_FEIN_NAME_STREET1_STREET2_STREET3_CITY_STATE_POSTCODE_COUNTRY_TRADENAME_CTYPE_ETYPE_PHONE_PHONEEXT_AMTYPE_AMFEIN_EMAIL_ACCT1099_REMARKS_FROM_RF30.BTRCOMP_WHERE_DATASET___s_ORDER_BY_NAME_CITY_STATE_FEIN
push eax
call fcn.00406fa2
lea eax, [ebp - 0x1c10]
push 0xfffffffffffffffd
push eax
push dword [0x45cce8]
call fcn.0040ec9a
add esp, 0x2c
test ax, ax
je 0x40fd0f
push dword [0x45cce8]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x610]
push eax
call fcn.0040e98e
add esp, 0xc
jmp 0x4100ab
mov edi, 0x1f0
lea eax, [ebp - 0x200]
push edi
push ebx
push eax
call fcn.00407280
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 2]
push 2
push eax
lea eax, [ebp - 6]
push 2
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.004100d6
add esp, 0x2c
test ax, ax
jne 0x410000
push dword [0x45cce8]
call sub.ODBC32.dll_SQLFetch
mov dword [ebp - 0xc], eax
movsx eax, ax
cmp eax, ebx
jne 0x410017
push edi
call fcn.0040753c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41006a
lea eax, [ebp - 0x13c]
push eax
call fcn.00410929
lea eax, [ebp - 0x1f6]
push eax
call fcn.00410929
lea eax, [ebp - 0x1cd]
push str.NONE
push eax
call fcn.0040a4e0
add esp, 0x10
test eax, eax
je 0x40fdc1
lea eax, [ebp - 0x1cd]
push str.none
push eax
call fcn.0040a4e0
pop ecx
test eax, eax
pop ecx
jne 0x40fdd4
lea eax, [ebp - 0x1cd]
push 0x458ff4
push eax
call fcn.0040afd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push str.NONE
push eax
call fcn.0040a4e0
pop ecx
test eax, eax
pop ecx
je 0x40fe02
lea eax, [ebp - 0x1a4]
push str.none
push eax
call fcn.0040a4e0
pop ecx
test eax, eax
pop ecx
jne 0x40fe15
lea eax, [ebp - 0x1a4]
push 0x458ff4
push eax
call fcn.0040afd0
pop ecx
pop ecx
lea eax, [ebp - 0x17b]
push eax
call fcn.00410929
lea eax, [ebp - 0x161]
push eax
call fcn.00410929
lea eax, [ebp - 0x149]
push eax
call fcn.00410929
lea eax, [ebp - 0x109]
push eax
call fcn.00410929
lea eax, [ebp - 0xcc]
push eax
call fcn.00410929
lea eax, [ebp - 0xc1]
push eax
call fcn.00410929
push edi
push ebx
push esi
call fcn.00407280
lea eax, [ebp - 0x13c]
push eax
lea eax, [esi + 0xc4]
push eax
lea eax, [ebp - 0x610]
push eax
call fcn.0041097b
lea eax, [ebp - 0x1f6]
push eax
lea eax, [esi + 0xa]
push eax
lea eax, [ebp - 0xc10]
push eax
call fcn.0041097b
lea eax, [ebp - 0x1cd]
push eax
lea eax, [esi + 0x33]
push eax
lea eax, [ebp - 0x1210]
push eax
call fcn.0041097b
add esp, 0x48
lea eax, [ebp - 0x1a4]
push eax
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x1610]
push eax
call fcn.0041097b
lea eax, [ebp - 0x17b]
push eax
lea eax, [esi + 0x85]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0041097b
lea eax, [ebp - 0x109]
push eax
lea eax, [esi + 0xf7]
push eax
lea eax, [ebp - 0x1810]
push eax
call fcn.0041097b
lea eax, [ebp - 0xae]
push eax
lea eax, [esi + 0x152]
push eax
lea eax, [ebp - 0x1410]
push eax
call fcn.0041097b
lea eax, [ebp - 0x49]
push eax
lea eax, [esi + 0x1b7]
push eax
lea eax, [ebp - 0xe10]
push eax
call fcn.0041097b
lea eax, [ebp - 0x44]
push eax
lea eax, [esi + 0x1bc]
push eax
lea eax, [ebp - 0xa10]
push eax
call fcn.0041097b
add esp, 0x48
lea eax, [ebp - 0x200]
push eax
push esi
call fcn.0040afd0
lea eax, [ebp - 0xb8]
push eax
lea eax, [esi + 0x148]
push eax
call fcn.0040afd0
lea eax, [ebp - 0x161]
push eax
lea eax, [esi + 0x9f]
push eax
call fcn.0040afd0
lea eax, [ebp - 0x149]
push eax
lea eax, [esi + 0xb7]
push eax
call fcn.0040afd0
lea eax, [ebp - 0x13f]
push eax
lea eax, [esi + 0xc1]
push eax
call fcn.0040afd0
lea eax, [ebp - 0xcc]
push eax
lea eax, [esi + 0x134]
push eax
call fcn.0040afd0
lea eax, [ebp - 0xc1]
push eax
lea eax, [esi + 0x13f]
push eax
call fcn.0040afd0
movsx eax, byte [ebp - 6]
mov dword [esi + 0x130], eax
push esi
movsx eax, byte [ebp - 2]
push dword [ebp + 0xc]
mov dword [esi + 0x12c], eax
movsx eax, byte [ebp - 4]
mov dword [esi + 0x144], eax
lea eax, [ebp - 0x810]
push eax
call fcn.0040f6fd
add esp, 0x44
cmp word [ebp - 0xc], bx
je 0x40fd50
mov ecx, 0x80
lea esi, [ebp - 0x410]
mov eax, dword [ebp + 8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret
cmp eax, 0x64
je 0x410034
push dword [0x45cce8]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
jmp 0x40fd01
cmp esi, ebx
jne 0x410000
lea eax, [ebp - 0x2d2]
push str.COMPANY
push eax
mov word [ebp - 0x410], 0x13f6
call fcn.0040afd0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0xa10]
push eax
call fcn.0040f03a
add esp, 0x10
jmp 0x4100ab
lea eax, [ebp - 0x2d2]
push str.ALLOCATE
push eax
mov word [ebp - 0x410], 0x17d4
call fcn.0040afd0
lea eax, [ebp - 0x2b3]
push str.COMPANY
push eax
call fcn.0040afd0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0040f03a
add esp, 0x18
mov edx, 0x80
mov esi, eax
mov ecx, edx
lea edi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
cmp word [ebp - 0x210], bx
mov ecx, edx
je 0x410005
lea esi, [ebp - 0x210]
jmp 0x41000b