Function at 0x41029c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c0c
call fcn.00407000
push ebx
push esi
push edi
push str.ReturnAllCompanyWhere
lea eax, [ebp - 0x40c]
push str.brocomp.c
push eax
xor ebx, ebx
xor esi, esi
call fcn.0040f00a
push dword [ebp + 0xc]
lea eax, [ebp - 0x60c]
push eax
call fcn.0040f694
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c0c]
push 0x45c9e0
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_AND__s_ORDER_BY_NAME_CITY_STATE_FEIN
push eax
call fcn.00406fa2
lea eax, [ebp - 0x1c0c]
push 0xfffffffffffffffd
push eax
push dword [0x45cce8]
call fcn.0040ec9a
add esp, 0x30
test ax, ax
je 0x41032b
push dword [0x45cce8]
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x60c]
push eax
call fcn.0040e98e
add esp, 0xc
jmp 0x4106c7
mov edi, 0x1f0
lea eax, [ebp - 0x1fc]
push edi
push ebx
push eax
call fcn.00407280
lea eax, [ebp - 0xc]
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 - 0x1fc]
push eax
call fcn.004100d6
add esp, 0x2c
test ax, ax
jne 0x41061c
push dword [0x45cce8]
call sub.ODBC32.dll_SQLFetch
mov dword [ebp + 0x10], eax
movsx eax, ax
cmp eax, ebx
jne 0x410633
push edi
call fcn.0040753c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x410686
lea eax, [ebp - 0x138]
push eax
call fcn.00410929
lea eax, [ebp - 0x1f2]
push eax
call fcn.00410929
lea eax, [ebp - 0x1c9]
push str.NONE
push eax
call fcn.0040a4e0
add esp, 0x10
test eax, eax
je 0x4103dd
lea eax, [ebp - 0x1c9]
push str.none
push eax
call fcn.0040a4e0
pop ecx
test eax, eax
pop ecx
jne 0x4103f0
lea eax, [ebp - 0x1c9]
push 0x458ff4
push eax
call fcn.0040afd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a0]
push str.NONE
push eax
call fcn.0040a4e0
pop ecx
test eax, eax
pop ecx
je 0x41041e
lea eax, [ebp - 0x1a0]
push str.none
push eax
call fcn.0040a4e0
pop ecx
test eax, eax
pop ecx
jne 0x410431
lea eax, [ebp - 0x1a0]
push 0x458ff4
push eax
call fcn.0040afd0
pop ecx
pop ecx
lea eax, [ebp - 0x177]
push eax
call fcn.00410929
lea eax, [ebp - 0x15d]
push eax
call fcn.00410929
lea eax, [ebp - 0x145]
push eax
call fcn.00410929
lea eax, [ebp - 0x105]
push eax
call fcn.00410929
lea eax, [ebp - 0xc8]
push eax
call fcn.00410929
lea eax, [ebp - 0xbd]
push eax
call fcn.00410929
push edi
push ebx
push esi
call fcn.00407280
lea eax, [ebp - 0x138]
push eax
lea eax, [esi + 0xc4]
push eax
lea eax, [ebp - 0x60c]
push eax
call fcn.0041097b
lea eax, [ebp - 0x1f2]
push eax
lea eax, [esi + 0xa]
push eax
lea eax, [ebp - 0x120c]
push eax
call fcn.0041097b
lea eax, [ebp - 0x1c9]
push eax
lea eax, [esi + 0x33]
push eax
lea eax, [ebp - 0xc0c]
push eax
call fcn.0041097b
add esp, 0x48
lea eax, [ebp - 0x1a0]
push eax
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x160c]
push eax
call fcn.0041097b
lea eax, [ebp - 0x177]
push eax
lea eax, [esi + 0x85]
push eax
lea eax, [ebp - 0x100c]
push eax
call fcn.0041097b
lea eax, [ebp - 0x105]
push eax
lea eax, [esi + 0xf7]
push eax
lea eax, [ebp - 0x180c]
push eax
call fcn.0041097b
lea eax, [ebp - 0xaa]
push eax
jmp 0x467260
mov ecx, 0x80
lea esi, [ebp - 0x40c]
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 0x410650
push dword [0x45cce8]
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x80c]
jmp 0x41031d
cmp esi, ebx
jne 0x41061c
lea eax, [ebp - 0x2ce]
push str.COMPANY
push eax
mov word [ebp - 0x40c], 0x13f6
call fcn.0040afd0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0xa0c]
push eax
call fcn.0040f03a
add esp, 0x10
jmp 0x4106c7
lea eax, [ebp - 0x2ce]
push str.ALLOCATE
push eax
mov word [ebp - 0x40c], 0x17d4
call fcn.0040afd0
lea eax, [ebp - 0x2af]
push str.COMPANY
push eax
call fcn.0040afd0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x80c]
push eax
call fcn.0040f03a
add esp, 0x18
mov edx, 0x80
mov esi, eax
mov ecx, edx
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
cmp word [ebp - 0x20c], bx
mov ecx, edx
je 0x410621
lea esi, [ebp - 0x20c]
jmp 0x410627